Spaces:
Running
Running
Update index.html
Browse files- 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:
|
| 252 |
border-radius: 20px;
|
| 253 |
-
width: 85%;
|
| 254 |
-
max-width:
|
| 255 |
-
margin-top:
|
| 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:
|
| 261 |
}
|
| 262 |
|
| 263 |
.pulse-bg {
|
|
@@ -274,7 +274,7 @@
|
|
| 274 |
|
| 275 |
.conclusion-title {
|
| 276 |
color: var(--accent-cyan);
|
| 277 |
-
font-size:
|
| 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.
|
| 287 |
line-height: 1.8;
|
| 288 |
color: var(--text-main);
|
| 289 |
}
|
| 290 |
|
| 291 |
.conclusion-point {
|
| 292 |
-
margin-bottom:
|
| 293 |
-
border-left: 6px solid var(--accent-cyan);
|
| 294 |
background: rgba(255, 255, 255, 0.02);
|
| 295 |
-
padding:
|
| 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:
|
| 304 |
-
font-size:
|
| 305 |
}
|
| 306 |
|
| 307 |
.point-desc {
|
|
@@ -312,10 +312,10 @@
|
|
| 312 |
.conclusion-climax {
|
| 313 |
text-align: center;
|
| 314 |
color: var(--accent-amber);
|
| 315 |
-
font-size:
|
| 316 |
font-weight: bold;
|
| 317 |
-
margin-top:
|
| 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(
|
| 541 |
|
| 542 |
-
// 文字顯示座標
|
| 543 |
-
svg += `<text x="500" y="
|
| 544 |
-
svg += `<text x="500" y="
|
| 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 |
}
|