:root { --vp-c-brand-1: #18794e; --vp-c-brand-2: #299764; --vp-c-brand-3: #30a46c; } .dark { --vp-c-brand-1: #3dd68c; --vp-c-brand-2: #30a46c; --vp-c-brand-3: #298459; } .medium-zoom-overlay { z-index: 20; } .medium-zoom-image { z-index: 9999 !important;/* 给的值是21,但是实测盖不住,直接999 */ } :root { /* hero标题渐变色 */ --vp-home-hero-name-color: transparent; --vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe, #41d1ff); /*hero logo背景渐变色 */ --vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%); --vp-home-hero-image-filter: blur(40px); } h1 { background: -webkit-linear-gradient(-45deg, #e43498 5%, #5ad7dd 15%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; } /* 提醒 */ .note.custom-block.github-alert{ border-color: var(--vp-c-indigo-3); box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; } .note.custom-block.github-alert:hover { transform: translateY(-5px); } /* 建议 */ .tip.custom-block.github-alert { border-color: var(--vp-c-brand-1); box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; } .tip.custom-block.github-alert:hover { transform: translateY(-5px); } /* 重要框 */ .important.custom-block.github-alert { border-color: var(--vp-c-purple-1); box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; } .important.custom-block.github-alert:hover { transform: translateY(-5px); } /* 警告 */ .warning.custom-block.github-alert { border-color: var(--vp-c-yellow-1); box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; } .warning.custom-block.github-alert:hover { transform: translateY(-5px); } /* 注意 */ .caution.custom-block.github-alert { border-color: var(--vp-c-red-1); box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.3); transition: transform 0.3s ease; } .caution.custom-block.github-alert:hover { transform: translateY(-5px); } /* 禁止双指缩放 */ body, html { touch-action: manipulation; -webkit-touch-callout: none; -ms-touch-action: manipulation; }