Lashtw commited on
Commit
1cd6335
·
1 Parent(s): e5e4119

style: 讀取畫面全面改版為暖亮色沙盤風格,標籤更名為『軍中秘史』並優化對比度

Browse files
Files changed (4) hide show
  1. css/game.css +55 -55
  2. index.html +4 -4
  3. js/config.js +1 -1
  4. js/game.js +1 -1
css/game.css CHANGED
@@ -3964,13 +3964,13 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
3964
  }
3965
 
3966
  /* =============================================================
3967
- 進遊戲圖資預載與軍中無厘頭秘史專屬視覺系統
3968
  ============================================================= */
3969
  #viewLoading {
3970
  position: fixed;
3971
  inset: 0;
3972
  z-index: 99999;
3973
- background: radial-gradient(circle at 50% 35%, #1e293b 0%, #0f172a 65%, #050811 100%);
3974
  display: flex;
3975
  align-items: center;
3976
  justify-content: center;
@@ -3979,18 +3979,18 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
3979
  }
3980
 
3981
  .loading-box {
3982
- max-width: 460px;
3983
  width: 100%;
3984
- background: rgba(30, 41, 59, 0.88);
3985
  backdrop-filter: blur(20px);
3986
  -webkit-backdrop-filter: blur(20px);
3987
- border: 1.5px solid rgba(245, 196, 81, 0.45);
3988
  border-radius: 24px;
3989
  padding: 34px 28px 28px;
3990
  text-align: center;
3991
  position: relative;
3992
  overflow: hidden;
3993
- box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 196, 81, 0.15);
3994
  animation: loadingFadeIn 0.35s ease-out;
3995
  }
3996
 
@@ -4010,25 +4010,25 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4010
  }
4011
 
4012
  .loading-tally-img {
4013
- width: 58px;
4014
- height: 58px;
4015
- border-radius: 14px;
4016
  object-fit: cover;
4017
  z-index: 2;
4018
- box-shadow: 0 4px 14px rgba(245, 196, 81, 0.45);
4019
- border: 1.5px solid rgba(245, 196, 81, 0.6);
4020
  animation: emblemPulse 2.4s ease-in-out infinite;
4021
  }
4022
 
4023
  .loading-pulse-ring {
4024
  position: absolute;
4025
- inset: 2px;
4026
- border-radius: 18px;
4027
- border: 2px solid rgba(245, 196, 81, 0.35);
4028
- border-top-color: #f59e0b;
4029
- border-right-color: #fef08a;
4030
  animation: emblemSpin 2s linear infinite;
4031
- box-shadow: 0 0 16px rgba(245, 196, 81, 0.25);
4032
  }
4033
 
4034
  .emblem-symbol {
@@ -4048,11 +4048,10 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4048
  position: absolute;
4049
  inset: 0;
4050
  border-radius: 50%;
4051
- border: 3px solid rgba(245, 196, 81, 0.15);
4052
- border-top-color: #f59e0b;
4053
- border-right-color: #fef08a;
4054
  animation: emblemSpin 1.4s linear infinite;
4055
- box-shadow: 0 0 16px rgba(245, 196, 81, 0.2);
4056
  }
4057
 
4058
  @keyframes emblemSpin {
@@ -4061,19 +4060,20 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4061
  }
4062
 
4063
  .loading-title {
4064
- margin: 10px 0 6px;
4065
- font-size: 21px;
4066
  font-weight: 900;
4067
  letter-spacing: 0.5px;
4068
- background: linear-gradient(135deg, #ffffff 0%, #fef08a 50%, #f59e0b 100%);
4069
- -webkit-background-clip: text;
4070
- -webkit-text-fill-color: transparent;
4071
  }
4072
 
4073
  .loading-sub,
4074
  .loading-status {
4075
  margin: 0 0 20px;
4076
- color: #cbd5e1;
 
4077
  font-size: 13.5px;
4078
  font-weight: 600;
4079
  min-height: 20px;
@@ -4083,12 +4083,12 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4083
  display: flex;
4084
  align-items: center;
4085
  gap: 12px;
4086
- background: rgba(15, 23, 42, 0.85);
4087
- border: 1px solid rgba(245, 196, 81, 0.3);
4088
  border-radius: 16px;
4089
  padding: 12px 16px;
4090
  margin-bottom: 20px;
4091
- box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
4092
  }
4093
 
4094
  .loading-progress-wrap .loading-progress-bar {
@@ -4098,41 +4098,41 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4098
 
4099
  .loading-progress-bar {
4100
  height: 12px;
4101
- background: rgba(15, 23, 42, 0.95);
4102
  border-radius: 99px;
4103
  overflow: hidden;
4104
  position: relative;
4105
- box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 196, 81, 0.2);
4106
  }
4107
 
4108
  .loading-progress-fill {
4109
  height: 100%;
4110
  width: 0%;
4111
- background: linear-gradient(90deg, #d97706 0%, #f59e0b 50%, #fef08a 100%);
4112
  border-radius: 99px;
4113
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
4114
- box-shadow: 0 0 16px rgba(245, 196, 81, 0.8);
4115
  }
4116
 
4117
  .loading-progress-num,
4118
  .loading-progress-percent {
4119
- color: #fde047;
4120
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace, sans-serif;
4121
  font-size: 15px;
4122
- font-weight: 800;
4123
- text-shadow: 0 0 10px rgba(253, 224, 71, 0.4);
4124
  min-width: 44px;
4125
  text-align: right;
 
4126
  }
4127
 
4128
  .loading-secret-card {
4129
- background: linear-gradient(180deg, rgba(15, 23, 42, 0.88) 0%, rgba(24, 34, 53, 0.92) 100%);
4130
- border: 1.5px dashed rgba(245, 196, 81, 0.45);
4131
  border-radius: 18px;
4132
  padding: 18px 20px 16px;
4133
  text-align: left;
4134
  position: relative;
4135
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
4136
  }
4137
 
4138
  .loading-secret-header {
@@ -4147,33 +4147,34 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4147
  display: inline-flex;
4148
  align-items: center;
4149
  gap: 4px;
4150
- background: linear-gradient(135deg, rgba(245, 196, 81, 0.25) 0%, rgba(217, 119, 6, 0.25) 100%);
4151
- color: #fef08a;
4152
- font-size: 11.5px;
4153
  font-weight: 800;
4154
- padding: 3px 12px;
4155
  border-radius: 99px;
4156
- border: 1px solid rgba(245, 196, 81, 0.5);
4157
  letter-spacing: 0.5px;
4158
- box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
4159
  }
4160
 
4161
  .loading-secret-hint {
4162
- color: #94a3b8;
4163
- font-size: 11.5px;
 
4164
  }
4165
 
4166
  .loading-secret-text,
4167
  .secret-text {
4168
- color: #f8fafc;
4169
- font-size: 14.5px;
4170
- line-height: 1.7;
4171
  min-height: 52px;
4172
  opacity: 1;
4173
- font-weight: 500;
4174
  letter-spacing: 0.3px;
4175
  transition: opacity 0.22s ease-in-out;
4176
- text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
4177
  }
4178
 
4179
  .loading-secret-text.fade-out,
@@ -4183,13 +4184,12 @@ html[data-theme="dark"] .r-card { background: var(--bg-2); }
4183
 
4184
  .loading-secret-footer,
4185
  .secret-footer {
4186
- color: #cbd5e1;
4187
  font-size: 12px;
4188
  text-align: right;
4189
  margin-top: 10px;
4190
  font-style: italic;
4191
  font-weight: 600;
4192
- opacity: 0.85;
4193
  }
4194
 
4195
  /* =============================================================
 
3964
  }
3965
 
3966
  /* =============================================================
3967
+ 進遊戲圖資預載與軍中秘史專屬視覺系統(治癒溫暖亮色沙盤風格)
3968
  ============================================================= */
3969
  #viewLoading {
3970
  position: fixed;
3971
  inset: 0;
3972
  z-index: 99999;
3973
+ background: radial-gradient(circle at 50% 35%, #fffdfa 0%, #f9e9da 65%, #ebd3bd 100%) !important;
3974
  display: flex;
3975
  align-items: center;
3976
  justify-content: center;
 
3979
  }
3980
 
3981
  .loading-box {
3982
+ max-width: 480px;
3983
  width: 100%;
3984
+ background: rgba(255, 255, 255, 0.96) !important;
3985
  backdrop-filter: blur(20px);
3986
  -webkit-backdrop-filter: blur(20px);
3987
+ border: 1.5px solid rgba(180, 130, 100, 0.3) !important;
3988
  border-radius: 24px;
3989
  padding: 34px 28px 28px;
3990
  text-align: center;
3991
  position: relative;
3992
  overflow: hidden;
3993
+ box-shadow: 0 20px 48px -8px rgba(120, 70, 50, 0.16), 0 4px 16px rgba(120, 70, 50, 0.06) !important;
3994
  animation: loadingFadeIn 0.35s ease-out;
3995
  }
3996
 
 
4010
  }
4011
 
4012
  .loading-tally-img {
4013
+ width: 62px;
4014
+ height: 62px;
4015
+ border-radius: 16px;
4016
  object-fit: cover;
4017
  z-index: 2;
4018
+ box-shadow: 0 6px 18px rgba(244, 212, 116, 0.5) !important;
4019
+ border: 2px solid #f4d474 !important;
4020
  animation: emblemPulse 2.4s ease-in-out infinite;
4021
  }
4022
 
4023
  .loading-pulse-ring {
4024
  position: absolute;
4025
+ inset: -2px;
4026
+ border-radius: 20px;
4027
+ border: 2px solid rgba(244, 212, 116, 0.5) !important;
4028
+ border-top-color: #ef5a56 !important;
4029
+ border-right-color: #f59e0b !important;
4030
  animation: emblemSpin 2s linear infinite;
4031
+ box-shadow: 0 0 16px rgba(244, 212, 116, 0.35);
4032
  }
4033
 
4034
  .emblem-symbol {
 
4048
  position: absolute;
4049
  inset: 0;
4050
  border-radius: 50%;
4051
+ border: 3px solid rgba(245, 196, 81, 0.2);
4052
+ border-top-color: #ef5a56;
4053
+ border-right-color: #f59e0b;
4054
  animation: emblemSpin 1.4s linear infinite;
 
4055
  }
4056
 
4057
  @keyframes emblemSpin {
 
4060
  }
4061
 
4062
  .loading-title {
4063
+ margin: 12px 0 6px;
4064
+ font-size: 22px;
4065
  font-weight: 900;
4066
  letter-spacing: 0.5px;
4067
+ color: #451a03 !important;
4068
+ background: none !important;
4069
+ -webkit-text-fill-color: initial !important;
4070
  }
4071
 
4072
  .loading-sub,
4073
  .loading-status {
4074
  margin: 0 0 20px;
4075
+ color: #78350f !important;
4076
+ opacity: 0.85;
4077
  font-size: 13.5px;
4078
  font-weight: 600;
4079
  min-height: 20px;
 
4083
  display: flex;
4084
  align-items: center;
4085
  gap: 12px;
4086
+ background: #fdf6ec !important;
4087
+ border: 1.5px solid rgba(217, 119, 6, 0.22) !important;
4088
  border-radius: 16px;
4089
  padding: 12px 16px;
4090
  margin-bottom: 20px;
4091
+ box-shadow: inset 0 1px 4px rgba(180, 83, 9, 0.06) !important;
4092
  }
4093
 
4094
  .loading-progress-wrap .loading-progress-bar {
 
4098
 
4099
  .loading-progress-bar {
4100
  height: 12px;
4101
+ background: #ecdac5 !important;
4102
  border-radius: 99px;
4103
  overflow: hidden;
4104
  position: relative;
4105
+ box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.12) !important;
4106
  }
4107
 
4108
  .loading-progress-fill {
4109
  height: 100%;
4110
  width: 0%;
4111
+ background: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #eab308 100%) !important;
4112
  border-radius: 99px;
4113
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
4114
+ box-shadow: 0 0 10px rgba(239, 90, 86, 0.4) !important;
4115
  }
4116
 
4117
  .loading-progress-num,
4118
  .loading-progress-percent {
4119
+ color: #b45309 !important;
4120
  font-family: 'JetBrains Mono', Consolas, Monaco, monospace, sans-serif;
4121
  font-size: 15px;
4122
+ font-weight: 900;
 
4123
  min-width: 44px;
4124
  text-align: right;
4125
+ text-shadow: none !important;
4126
  }
4127
 
4128
  .loading-secret-card {
4129
+ background: linear-gradient(180deg, #fffcf8 0%, #faf3eb 100%) !important;
4130
+ border: 1.5px dashed rgba(217, 119, 6, 0.35) !important;
4131
  border-radius: 18px;
4132
  padding: 18px 20px 16px;
4133
  text-align: left;
4134
  position: relative;
4135
+ box-shadow: 0 4px 16px rgba(120, 70, 50, 0.06) !important;
4136
  }
4137
 
4138
  .loading-secret-header {
 
4147
  display: inline-flex;
4148
  align-items: center;
4149
  gap: 4px;
4150
+ background: #fef3c7 !important;
4151
+ color: #92400e !important;
4152
+ font-size: 12px;
4153
  font-weight: 800;
4154
+ padding: 4px 12px;
4155
  border-radius: 99px;
4156
+ border: 1px solid #fde68a !important;
4157
  letter-spacing: 0.5px;
4158
+ box-shadow: 0 1px 3px rgba(146, 64, 14, 0.1) !important;
4159
  }
4160
 
4161
  .loading-secret-hint {
4162
+ color: #998074 !important;
4163
+ font-size: 12px;
4164
+ font-weight: 600;
4165
  }
4166
 
4167
  .loading-secret-text,
4168
  .secret-text {
4169
+ color: #1c1917 !important;
4170
+ font-size: 15px;
4171
+ line-height: 1.75;
4172
  min-height: 52px;
4173
  opacity: 1;
4174
+ font-weight: 600;
4175
  letter-spacing: 0.3px;
4176
  transition: opacity 0.22s ease-in-out;
4177
+ text-shadow: none !important;
4178
  }
4179
 
4180
  .loading-secret-text.fade-out,
 
4184
 
4185
  .loading-secret-footer,
4186
  .secret-footer {
4187
+ color: #8c7e72 !important;
4188
  font-size: 12px;
4189
  text-align: right;
4190
  margin-top: 10px;
4191
  font-style: italic;
4192
  font-weight: 600;
 
4193
  }
4194
 
4195
  /* =============================================================
index.html CHANGED
@@ -9,7 +9,7 @@
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+TC:wght@400;600;700;900&display=swap" rel="stylesheet">
11
  <link rel="stylesheet" href="css/base.css?v=20261025_caravan">
12
- <link rel="stylesheet" href="css/game.css?v=20261028_v5_final">
13
  </head>
14
  <body>
15
  <div id="modeBanner" class="mode-banner hidden"></div>
@@ -32,10 +32,10 @@
32
  <div class="loading-progress-num num" id="loadingProgressNum">0%</div>
33
  </div>
34
 
35
- <!-- 無厘頭軍中秘史卡片 -->
36
  <div class="loading-secret-card" id="loadingSecretCard">
37
  <div class="loading-secret-header">
38
- <span class="loading-secret-badge">💡 軍中無厘頭秘史</span>
39
  <span class="loading-secret-hint">卷宗整飭完畢即刻開拔出征</span>
40
  </div>
41
  <p class="loading-secret-text" id="loadingSecretText">
@@ -357,6 +357,6 @@
357
  <button id="luckyChest" class="lucky hidden" aria-label="幸運寶箱">🎁</button>
358
  </section>
359
 
360
- <script type="module" src="js/game.js?v=20261028_v5_final"></script>
361
  </body>
362
  </html>
 
9
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10
  <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Noto+Sans+TC:wght@400;600;700;900&display=swap" rel="stylesheet">
11
  <link rel="stylesheet" href="css/base.css?v=20261025_caravan">
12
+ <link rel="stylesheet" href="css/game.css?v=20261028_v6_warm_theme">
13
  </head>
14
  <body>
15
  <div id="modeBanner" class="mode-banner hidden"></div>
 
32
  <div class="loading-progress-num num" id="loadingProgressNum">0%</div>
33
  </div>
34
 
35
+ <!-- 軍中秘史卡片 -->
36
  <div class="loading-secret-card" id="loadingSecretCard">
37
  <div class="loading-secret-header">
38
+ <span class="loading-secret-badge">💡 軍中秘史</span>
39
  <span class="loading-secret-hint">卷宗整飭完畢即刻開拔出征</span>
40
  </div>
41
  <p class="loading-secret-text" id="loadingSecretText">
 
357
  <button id="luckyChest" class="lucky hidden" aria-label="幸運寶箱">🎁</button>
358
  </section>
359
 
360
+ <script type="module" src="js/game.js?v=20261028_v6_warm_theme"></script>
361
  </body>
362
  </html>
js/config.js CHANGED
@@ -3,7 +3,7 @@
3
  // 所有數值都集中在這裡,調整平衡只要改這個檔案。
4
  // =============================================================
5
 
6
- export const APP_BUILD_VERSION = '20261028_v5_preload_ok';
7
 
8
  // ---------- 主題(攻城掠地世界觀) ----------
9
  export const THEME = {
 
3
  // 所有數值都集中在這裡,調整平衡只要改這個檔案。
4
  // =============================================================
5
 
6
+ export const APP_BUILD_VERSION = '20261028_v6_warm_theme';
7
 
8
  // ---------- 主題(攻城掠地世界觀) ----------
9
  export const THEME = {
js/game.js CHANGED
@@ -3,7 +3,7 @@ import {
3
  BUILDINGS, TIERS, SCHEDULE, PASS_SCORE, THEME, QUIZ_COIN_MIN, QUIZ_COIN_SECONDS,
4
  CLASS_STAGES, LUCKY, STAR_BASE_MAX, QUIZ_COIN_DAILY_FULL, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,
5
  WORLD_BOSS_UNLOCK_DATE, WORLD_BOSS_END_DATE, MERCHANT, APP_BUILD_VERSION
6
- } from './config.js?v=20261028_v4_preload_secrets';
7
  import {
8
  loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,
9
  generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,
 
3
  BUILDINGS, TIERS, SCHEDULE, PASS_SCORE, THEME, QUIZ_COIN_MIN, QUIZ_COIN_SECONDS,
4
  CLASS_STAGES, LUCKY, STAR_BASE_MAX, QUIZ_COIN_DAILY_FULL, WEEKLY_SCHEDULE, SLOTH_PENALTY_MULT,
5
  WORLD_BOSS_UNLOCK_DATE, WORLD_BOSS_END_DATE, MERCHANT, APP_BUILD_VERSION
6
+ } from './config.js?v=20261028_v6_warm_theme';
7
  import {
8
  loadEnglishWords, getMerchantStatus, getMerchantDayInfo, generateMerchantQuiz, speakWord, submitMerchantAnswer,
9
  generateDailyChallengeQueue, calcPriceMultiplier, calcBargainDiscount, settleDailyChallenge, buyMerchantItem,