Showing
1 changed file
with
14 additions
and
44 deletions
| @@ -2542,26 +2542,26 @@ class HTMLRenderer: | @@ -2542,26 +2542,26 @@ class HTMLRenderer: | ||
| 2542 | --swot-threat: #b36b16; | 2542 | --swot-threat: #b36b16; |
| 2543 | --swot-on-light: #0f1b2b; | 2543 | --swot-on-light: #0f1b2b; |
| 2544 | --swot-on-dark: #f7fbff; | 2544 | --swot-on-dark: #f7fbff; |
| 2545 | - --swot-text: #0f1b2b; | ||
| 2546 | - --swot-muted: rgba(0,0,0,0.65); | ||
| 2547 | - --swot-surface: rgba(255,255,255,0.86); | ||
| 2548 | - --swot-chip-bg: rgba(0,0,0,0.06); | ||
| 2549 | - --swot-tag-border: rgba(0,0,0,0.08); | ||
| 2550 | - --swot-card-bg: linear-gradient(135deg, rgba(76,132,255,0.06), rgba(28,127,110,0.08)), var(--card-bg); | 2545 | + --swot-text: var(--text-color); |
| 2546 | + --swot-muted: rgba(0,0,0,0.58); | ||
| 2547 | + --swot-surface: rgba(255,255,255,0.92); | ||
| 2548 | + --swot-chip-bg: rgba(0,0,0,0.04); | ||
| 2549 | + --swot-tag-border: var(--border-color); | ||
| 2550 | + --swot-card-bg: linear-gradient(135deg, rgba(76,132,255,0.04), rgba(28,127,110,0.06)), var(--card-bg); | ||
| 2551 | --swot-card-border: var(--border-color); | 2551 | --swot-card-border: var(--border-color); |
| 2552 | - --swot-card-shadow: 0 12px 30px var(--shadow-color); | 2552 | + --swot-card-shadow: 0 14px 28px var(--shadow-color); |
| 2553 | --swot-card-blur: none; | 2553 | --swot-card-blur: none; |
| 2554 | - --swot-cell-base: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,255,255,0.4)); | ||
| 2555 | - --swot-cell-border: rgba(0,0,0,0.05); | ||
| 2556 | - --swot-cell-strength-bg: linear-gradient(135deg, rgba(28,127,110,0.08), rgba(255,255,255,0.75)), var(--card-bg); | ||
| 2557 | - --swot-cell-weakness-bg: linear-gradient(135deg, rgba(192,57,43,0.08), rgba(255,255,255,0.75)), var(--card-bg); | ||
| 2558 | - --swot-cell-opportunity-bg: linear-gradient(135deg, rgba(31,90,179,0.08), rgba(255,255,255,0.75)), var(--card-bg); | ||
| 2559 | - --swot-cell-threat-bg: linear-gradient(135deg, rgba(179,107,22,0.08), rgba(255,255,255,0.75)), var(--card-bg); | 2554 | + --swot-cell-base: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.5)); |
| 2555 | + --swot-cell-border: rgba(0,0,0,0.04); | ||
| 2556 | + --swot-cell-strength-bg: linear-gradient(135deg, rgba(28,127,110,0.07), rgba(255,255,255,0.78)), var(--card-bg); | ||
| 2557 | + --swot-cell-weakness-bg: linear-gradient(135deg, rgba(192,57,43,0.07), rgba(255,255,255,0.78)), var(--card-bg); | ||
| 2558 | + --swot-cell-opportunity-bg: linear-gradient(135deg, rgba(31,90,179,0.07), rgba(255,255,255,0.78)), var(--card-bg); | ||
| 2559 | + --swot-cell-threat-bg: linear-gradient(135deg, rgba(179,107,22,0.07), rgba(255,255,255,0.78)), var(--card-bg); | ||
| 2560 | --swot-cell-strength-border: rgba(28,127,110,0.35); | 2560 | --swot-cell-strength-border: rgba(28,127,110,0.35); |
| 2561 | --swot-cell-weakness-border: rgba(192,57,43,0.35); | 2561 | --swot-cell-weakness-border: rgba(192,57,43,0.35); |
| 2562 | --swot-cell-opportunity-border: rgba(31,90,179,0.35); | 2562 | --swot-cell-opportunity-border: rgba(31,90,179,0.35); |
| 2563 | --swot-cell-threat-border: rgba(179,107,22,0.35); | 2563 | --swot-cell-threat-border: rgba(179,107,22,0.35); |
| 2564 | - --swot-item-border: rgba(0,0,0,0.06); | 2564 | + --swot-item-border: rgba(0,0,0,0.05); |
| 2565 | }} | 2565 | }} |
| 2566 | .dark-mode {{ | 2566 | .dark-mode {{ |
| 2567 | --bg-color: #121212; | 2567 | --bg-color: #121212; |
| @@ -3490,36 +3490,6 @@ img, canvas, svg {{ | @@ -3490,36 +3490,6 @@ img, canvas, svg {{ | ||
| 3490 | }} | 3490 | }} |
| 3491 | }} | 3491 | }} |
| 3492 | 3492 | ||
| 3493 | -/* 深色系统偏好下,同步SWOT的玻璃态配色与文字对比度 */ | ||
| 3494 | -@media (prefers-color-scheme: dark) {{ | ||
| 3495 | - :root {{ | ||
| 3496 | - --swot-strength: #1c7f6e; | ||
| 3497 | - --swot-weakness: #e06754; | ||
| 3498 | - --swot-opportunity: #5a8cff; | ||
| 3499 | - --swot-threat: #d48a2c; | ||
| 3500 | - --swot-on-dark: #e6f0ff; | ||
| 3501 | - --swot-text: #e6f0ff; | ||
| 3502 | - --swot-muted: rgba(230,240,255,0.75); | ||
| 3503 | - --swot-surface: rgba(255,255,255,0.08); | ||
| 3504 | - --swot-chip-bg: rgba(255,255,255,0.14); | ||
| 3505 | - --swot-tag-border: rgba(255,255,255,0.24); | ||
| 3506 | - --swot-card-bg: radial-gradient(140% 140% at 18% 18%, rgba(110,168,254,0.18), transparent 55%), radial-gradient(120% 140% at 82% 0%, rgba(28,127,110,0.16), transparent 52%), linear-gradient(160deg, #0b1424 0%, #0b1f31 52%, #0a1626 100%); | ||
| 3507 | - --swot-card-border: rgba(255,255,255,0.14); | ||
| 3508 | - --swot-card-shadow: 0 24px 60px rgba(0, 0, 0, 0.58); | ||
| 3509 | - --swot-card-blur: blur(12px); | ||
| 3510 | - --swot-cell-base: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); | ||
| 3511 | - --swot-cell-border: rgba(255,255,255,0.2); | ||
| 3512 | - --swot-cell-strength-bg: linear-gradient(150deg, rgba(28,127,110,0.28), rgba(28,127,110,0.12)), var(--swot-cell-base); | ||
| 3513 | - --swot-cell-weakness-bg: linear-gradient(150deg, rgba(192,57,43,0.32), rgba(192,57,43,0.14)), var(--swot-cell-base); | ||
| 3514 | - --swot-cell-opportunity-bg: linear-gradient(150deg, rgba(31,90,179,0.28), rgba(31,90,179,0.12)), var(--swot-cell-base); | ||
| 3515 | - --swot-cell-threat-bg: linear-gradient(150deg, rgba(179,107,22,0.32), rgba(179,107,22,0.14)), var(--swot-cell-base); | ||
| 3516 | - --swot-cell-strength-border: rgba(28,127,110,0.65); | ||
| 3517 | - --swot-cell-weakness-border: rgba(192,57,43,0.68); | ||
| 3518 | - --swot-cell-opportunity-border: rgba(31,90,179,0.68); | ||
| 3519 | - --swot-cell-threat-border: rgba(179,107,22,0.68); | ||
| 3520 | - --swot-item-border: rgba(255,255,255,0.14); | ||
| 3521 | - }} | ||
| 3522 | -}} | ||
| 3523 | """ | 3493 | """ |
| 3524 | 3494 | ||
| 3525 | def _hydration_script(self) -> str: | 3495 | def _hydration_script(self) -> str: |
-
Please register or login to post a comment