Lashtw commited on
Commit
e2e9940
·
verified ·
1 Parent(s): f6386c3

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +19 -19
index.html CHANGED
@@ -248,16 +248,16 @@
248
  .conclusion-box {
249
  background: rgba(15, 23, 42, 0.6);
250
  border: 2px solid var(--accent-amber);
251
- padding: 60px 80px; /* 增加上下左右的內距 */
252
  border-radius: 20px;
253
- width: 85%; /* 讓寬度隨著螢幕延伸 */
254
- max-width: 1300px; /* 大幅增加最大寬度限制 (原本 900px) */
255
- margin-top: 50px;
256
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
257
  z-index: 10;
258
  display: flex;
259
  flex-direction: column;
260
- gap: 30px;
261
  }
262
 
263
  .pulse-bg {
@@ -274,7 +274,7 @@
274
 
275
  .conclusion-title {
276
  color: var(--accent-cyan);
277
- font-size: 3.5rem; /* 字體加大 (原本 2.5rem) */
278
  text-align: center;
279
  margin-bottom: 10px;
280
  font-weight: bold;
@@ -283,16 +283,16 @@
283
 
284
  .conclusion-content {
285
  text-align: left;
286
- font-size: 1.6rem; /* 內文字體加大 (原本 1.3rem) */
287
  line-height: 1.8;
288
  color: var(--text-main);
289
  }
290
 
291
  .conclusion-point {
292
- margin-bottom: 35px; /* 增加點跟點之間的間距 */
293
- border-left: 6px solid var(--accent-cyan); /* 邊框加粗 */
294
  background: rgba(255, 255, 255, 0.02);
295
- padding: 25px 30px 25px 30px; /* 增加色塊內的留白 */
296
  border-radius: 0 12px 12px 0;
297
  }
298
 
@@ -300,8 +300,8 @@
300
  color: var(--accent-amber);
301
  font-weight: bold;
302
  display: block;
303
- margin-bottom: 12px;
304
- font-size: 2rem; /* 點目標題加大 (原本 1.5rem) */
305
  }
306
 
307
  .point-desc {
@@ -312,10 +312,10 @@
312
  .conclusion-climax {
313
  text-align: center;
314
  color: var(--accent-amber);
315
- font-size: 3.2rem; /* 結語大幅加大 (原本 2.2rem) */
316
  font-weight: bold;
317
- margin-top: 30px;
318
- text-shadow: 0 0 30px rgba(251, 191, 36, 0.6); /* 增強發光效果 */
319
  }
320
 
321
  </style>
@@ -537,11 +537,11 @@
537
 
538
  let baseDiff = 92;
539
  let areaDiff = Math.round(baseDiff * k * k);
540
- let dynamicFontSize = Math.round(36 + (k - 1) * 30);
541
 
542
- // 文字顯示座標整體往上移,避免與點點重疊
543
- svg += `<text x="500" y="395" fill="${colors.text}" font-size="20" text-anchor="middle">雙方能力總面積的差距</text>`;
544
- svg += `<text x="500" y="445" fill="${colors.rose}" font-size="${dynamicFontSize}" font-weight="bold" text-anchor="middle" dominant-baseline="middle">${areaDiff}</text>`;
545
 
546
  document.getElementById('svg-slide-2').innerHTML = svg;
547
  }
 
248
  .conclusion-box {
249
  background: rgba(15, 23, 42, 0.6);
250
  border: 2px solid var(--accent-amber);
251
+ padding: 45px 60px; /* 稍微縮小內距 */
252
  border-radius: 20px;
253
+ width: 85%;
254
+ max-width: 1050px; /* 縮小最大寬度限制 */
255
+ margin-top: 40px;
256
  box-shadow: 0 0 40px rgba(251, 191, 36, 0.15);
257
  z-index: 10;
258
  display: flex;
259
  flex-direction: column;
260
+ gap: 25px; /* 稍微縮小行距 */
261
  }
262
 
263
  .pulse-bg {
 
274
 
275
  .conclusion-title {
276
  color: var(--accent-cyan);
277
+ font-size: 3rem; /* 字體稍微縮小 */
278
  text-align: center;
279
  margin-bottom: 10px;
280
  font-weight: bold;
 
283
 
284
  .conclusion-content {
285
  text-align: left;
286
+ font-size: 1.4rem; /* 內文字體稍微縮小 */
287
  line-height: 1.8;
288
  color: var(--text-main);
289
  }
290
 
291
  .conclusion-point {
292
+ margin-bottom: 25px; /* 縮小點與點的間距 */
293
+ border-left: 6px solid var(--accent-cyan);
294
  background: rgba(255, 255, 255, 0.02);
295
+ padding: 20px 25px; /* 縮小色塊內的留白 */
296
  border-radius: 0 12px 12px 0;
297
  }
298
 
 
300
  color: var(--accent-amber);
301
  font-weight: bold;
302
  display: block;
303
+ margin-bottom: 10px;
304
+ font-size: 1.8rem; /* 點目標題稍微縮小 */
305
  }
306
 
307
  .point-desc {
 
312
  .conclusion-climax {
313
  text-align: center;
314
  color: var(--accent-amber);
315
+ font-size: 2.5rem; /* 結語縮小,確保能夠單行顯示 */
316
  font-weight: bold;
317
+ margin-top: 25px;
318
+ text-shadow: 0 0 30px rgba(251, 191, 36, 0.6);
319
  }
320
 
321
  </style>
 
537
 
538
  let baseDiff = 92;
539
  let areaDiff = Math.round(baseDiff * k * k);
540
+ let dynamicFontSize = Math.round(32 + (k - 1) * 20); // 收斂字體放大的極限,避免過大
541
 
542
+ // 文字顯示座標再次往上移,留出更大的底部空間
543
+ svg += `<text x="500" y="380" fill="${colors.text}" font-size="20" text-anchor="middle">雙方能力總面積的差距</text>`;
544
+ svg += `<text x="500" y="425" fill="${colors.rose}" font-size="${dynamicFontSize}" font-weight="bold" text-anchor="middle" dominant-baseline="middle">${areaDiff}</text>`;
545
 
546
  document.getElementById('svg-slide-2').innerHTML = svg;
547
  }