2026-01-15 20:10:19 +08:00
|
|
|
|
<!--
|
|
|
|
|
|
RNNvsTransformer.vue
|
|
|
|
|
|
RNN vs Transformer 架构对比演示
|
|
|
|
|
|
|
|
|
|
|
|
用途:
|
|
|
|
|
|
对比两种处理序列数据的核心架构:
|
|
|
|
|
|
- RNN: 串行处理,记忆随距离衰减。
|
|
|
|
|
|
- Transformer: 并行处理,Self-Attention 机制捕捉长距离依赖。
|
|
|
|
|
|
|
|
|
|
|
|
交互功能:
|
|
|
|
|
|
- 架构切换:RNN / Transformer (Self-Attention)。
|
|
|
|
|
|
- 动态演示:
|
|
|
|
|
|
- RNN: 逐步输入单词,观察 Hidden State 的变化。
|
|
|
|
|
|
- Transformer: 鼠标悬停在单词上,显示其关注(Attend to)的其他单词(Attention Map)。
|
|
|
|
|
|
-->
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="arch-demo">
|
|
|
|
|
|
<div class="control-tabs">
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<button
|
|
|
|
|
|
:class="{ active: mode === 'rnn' }"
|
|
|
|
|
|
@click="mode = 'rnn'"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
🐌 RNN (Sequential)
|
|
|
|
|
|
</button>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<button
|
2026-01-15 20:10:19 +08:00
|
|
|
|
:class="{ active: mode === 'transformer' }"
|
|
|
|
|
|
@click="mode = 'transformer'"
|
|
|
|
|
|
>
|
|
|
|
|
|
⚡ Transformer (Parallel + Attention)
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="visualization-area">
|
|
|
|
|
|
<!-- RNN Visualization -->
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-if="mode === 'rnn'"
|
|
|
|
|
|
class="rnn-viz"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
<div class="sequence-display">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-for="(word, idx) in rnnWords"
|
2026-01-15 20:10:19 +08:00
|
|
|
|
:key="idx"
|
|
|
|
|
|
class="word-item"
|
|
|
|
|
|
:class="{ active: currentRnnStep === idx }"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ word }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-01-15 20:10:19 +08:00
|
|
|
|
<div class="rnn-process">
|
|
|
|
|
|
<div class="hidden-state-track">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<div
|
2026-01-15 20:10:19 +08:00
|
|
|
|
class="hidden-state-box"
|
|
|
|
|
|
:style="{ opacity: rnnMemoryOpacity }"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="memory-content">
|
|
|
|
|
|
Memory (h)
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<div
|
|
|
|
|
|
class="memory-level"
|
|
|
|
|
|
:style="{ height: rnnMemoryStrength + '%' }"
|
2026-02-18 17:38:10 +08:00
|
|
|
|
/>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div class="arrow-right">
|
|
|
|
|
|
→
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="output-box">
|
|
|
|
|
|
Output: {{ rnnOutput }}
|
|
|
|
|
|
</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="controls">
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<button
|
|
|
|
|
|
:disabled="isPlayingRnn"
|
|
|
|
|
|
@click="playRnn"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
{{ isPlayingRnn ? 'Processing...' : '▶ Play Sequence' }}
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<p class="desc-text">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
RNN 从左到右逐个读取。注意看
|
|
|
|
|
|
Memory(记忆),随着句子变长,最早的信息("The")可能会被后面的信息冲淡,这就是“长距离依赖”问题。
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Transformer Visualization -->
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-else
|
|
|
|
|
|
class="transformer-viz"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
<div class="sentence-container">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-for="(word, idx) in transformerWords"
|
2026-01-15 20:10:19 +08:00
|
|
|
|
:key="idx"
|
|
|
|
|
|
class="t-word"
|
2026-01-16 19:10:21 +08:00
|
|
|
|
:class="{
|
|
|
|
|
|
hovered: hoveredWordIndex === idx,
|
|
|
|
|
|
attended: getAttentionScore(hoveredWordIndex, idx) > 0
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}"
|
2026-01-16 19:10:21 +08:00
|
|
|
|
:style="{
|
2026-01-15 20:10:19 +08:00
|
|
|
|
backgroundColor: getAttentionColor(hoveredWordIndex, idx)
|
|
|
|
|
|
}"
|
2026-02-18 17:38:10 +08:00
|
|
|
|
@mouseenter="hoveredWordIndex = idx"
|
|
|
|
|
|
@mouseleave="hoveredWordIndex = -1"
|
2026-01-15 20:10:19 +08:00
|
|
|
|
>
|
|
|
|
|
|
{{ word }}
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-if="hoveredWordIndex !== -1"
|
|
|
|
|
|
class="attention-info"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
<p>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
Current Focus:
|
|
|
|
|
|
<strong>"{{ transformerWords[hoveredWordIndex] }}"</strong>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
<p class="sub-info">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
Paying attention to:
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<span
|
|
|
|
|
|
v-for="(attn, idx) in currentAttentions"
|
|
|
|
|
|
:key="idx"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
<span v-if="attn.score > 0.01">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
"{{ transformerWords[attn.idx] }}" ({{
|
|
|
|
|
|
Math.round(attn.score * 100)
|
|
|
|
|
|
}}%)
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</span>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-else
|
|
|
|
|
|
class="attention-info"
|
|
|
|
|
|
>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
<p>👆 鼠标悬停在任意单词上,查看它在“关注”谁。</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<p class="desc-text">
|
2026-01-16 19:10:21 +08:00
|
|
|
|
Transformer 一眼看完整个句子(并行)。Self-Attention
|
|
|
|
|
|
机制让每个词都能直接“看见”其他词,无论距离多远。
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<br>例如:悬停在 <strong>"it"</strong> 上,你会发现它强烈关注
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<strong>"animal"</strong>,因为它指代的就是 animal。
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
|
|
import { ref, computed } from 'vue'
|
|
|
|
|
|
|
|
|
|
|
|
const mode = ref('rnn')
|
|
|
|
|
|
|
|
|
|
|
|
// RNN Data
|
2026-01-16 19:10:21 +08:00
|
|
|
|
const rnnWords = [
|
|
|
|
|
|
'The',
|
|
|
|
|
|
'quick',
|
|
|
|
|
|
'brown',
|
|
|
|
|
|
'fox',
|
|
|
|
|
|
'jumps',
|
|
|
|
|
|
'over',
|
|
|
|
|
|
'the',
|
|
|
|
|
|
'lazy',
|
|
|
|
|
|
'dog'
|
|
|
|
|
|
]
|
2026-01-15 20:10:19 +08:00
|
|
|
|
const currentRnnStep = ref(-1)
|
|
|
|
|
|
const isPlayingRnn = ref(false)
|
|
|
|
|
|
const rnnMemoryOpacity = ref(0.3)
|
|
|
|
|
|
const rnnMemoryStrength = ref(0)
|
|
|
|
|
|
const rnnOutput = ref('...')
|
|
|
|
|
|
|
|
|
|
|
|
const playRnn = async () => {
|
|
|
|
|
|
isPlayingRnn.value = true
|
|
|
|
|
|
currentRnnStep.value = -1
|
|
|
|
|
|
rnnMemoryStrength.value = 0
|
|
|
|
|
|
rnnOutput.value = '...'
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-01-15 20:10:19 +08:00
|
|
|
|
for (let i = 0; i < rnnWords.length; i++) {
|
|
|
|
|
|
currentRnnStep.value = i
|
|
|
|
|
|
// Memory accumulates but also decays
|
|
|
|
|
|
rnnMemoryStrength.value = Math.min(100, rnnMemoryStrength.value * 0.8 + 30)
|
|
|
|
|
|
rnnMemoryOpacity.value = 0.5 + (i / rnnWords.length) * 0.5
|
|
|
|
|
|
rnnOutput.value = `h${i}`
|
2026-01-16 19:10:21 +08:00
|
|
|
|
await new Promise((r) => setTimeout(r, 800))
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-01-15 20:10:19 +08:00
|
|
|
|
isPlayingRnn.value = false
|
|
|
|
|
|
rnnOutput.value = 'Done'
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Transformer Data
|
2026-01-16 19:10:21 +08:00
|
|
|
|
const transformerWords = [
|
|
|
|
|
|
'The',
|
|
|
|
|
|
'animal',
|
|
|
|
|
|
"didn't",
|
|
|
|
|
|
'cross',
|
|
|
|
|
|
'the',
|
|
|
|
|
|
'street',
|
|
|
|
|
|
'because',
|
|
|
|
|
|
'it',
|
|
|
|
|
|
'was',
|
|
|
|
|
|
'too',
|
|
|
|
|
|
'tired',
|
|
|
|
|
|
'.'
|
|
|
|
|
|
]
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
|
|
|
|
|
// Pre-defined attention matrix (simplified for demo)
|
|
|
|
|
|
// Source -> Targets (scores)
|
|
|
|
|
|
const attentionMap = {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
7: {
|
|
|
|
|
|
// "it"
|
2026-01-15 20:10:19 +08:00
|
|
|
|
1: 0.8, // animal
|
|
|
|
|
|
5: 0.1, // street
|
2026-01-16 19:10:21 +08:00
|
|
|
|
7: 1.0 // itself
|
2026-01-15 20:10:19 +08:00
|
|
|
|
},
|
2026-01-16 19:10:21 +08:00
|
|
|
|
10: {
|
|
|
|
|
|
// "tired"
|
2026-01-15 20:10:19 +08:00
|
|
|
|
1: 0.6, // animal
|
|
|
|
|
|
7: 0.9, // it
|
|
|
|
|
|
10: 1.0
|
|
|
|
|
|
},
|
2026-01-16 19:10:21 +08:00
|
|
|
|
3: {
|
|
|
|
|
|
// "cross"
|
2026-01-15 20:10:19 +08:00
|
|
|
|
1: 0.5, // animal
|
|
|
|
|
|
5: 0.5, // street
|
|
|
|
|
|
3: 1.0
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const hoveredWordIndex = ref(-1)
|
|
|
|
|
|
|
|
|
|
|
|
const currentAttentions = computed(() => {
|
|
|
|
|
|
if (hoveredWordIndex.value === -1) return []
|
|
|
|
|
|
const map = attentionMap[hoveredWordIndex.value] || {}
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
|
|
|
|
|
return transformerWords
|
|
|
|
|
|
.map((_, idx) => {
|
|
|
|
|
|
let score = map[idx]
|
|
|
|
|
|
if (score === undefined) {
|
|
|
|
|
|
// Default behavior if not in map: attend to self strongly, neighbors weakly
|
|
|
|
|
|
if (idx === hoveredWordIndex.value) score = 1.0
|
|
|
|
|
|
else if (Math.abs(idx - hoveredWordIndex.value) === 1) score = 0.1
|
|
|
|
|
|
else score = 0.0
|
|
|
|
|
|
}
|
|
|
|
|
|
return { idx, score }
|
|
|
|
|
|
})
|
|
|
|
|
|
.sort((a, b) => b.score - a.score)
|
2026-01-15 20:10:19 +08:00
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const getAttentionScore = (sourceIdx, targetIdx) => {
|
|
|
|
|
|
if (sourceIdx === -1) return 0
|
|
|
|
|
|
const map = attentionMap[sourceIdx]
|
2026-01-16 19:10:21 +08:00
|
|
|
|
|
2026-01-15 20:10:19 +08:00
|
|
|
|
if (map) {
|
|
|
|
|
|
return map[targetIdx] || 0
|
|
|
|
|
|
} else {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
// Default behavior if not in map
|
|
|
|
|
|
if (sourceIdx === targetIdx) return 1.0
|
|
|
|
|
|
if (Math.abs(sourceIdx - targetIdx) === 1) return 0.1
|
|
|
|
|
|
return 0
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const getAttentionColor = (sourceIdx, targetIdx) => {
|
|
|
|
|
|
if (sourceIdx === -1) return 'transparent'
|
|
|
|
|
|
const score = getAttentionScore(sourceIdx, targetIdx)
|
|
|
|
|
|
if (score === 0) return 'transparent'
|
|
|
|
|
|
// Purple alpha
|
|
|
|
|
|
return `rgba(139, 92, 246, ${score * 0.6})`
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.arch-demo {
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
2026-02-14 20:23:34 +08:00
|
|
|
|
border-radius: 6px;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
background-color: var(--vp-c-bg-soft);
|
2026-02-14 20:23:34 +08:00
|
|
|
|
margin: 0.5rem 0;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
font-family: var(--vp-font-family-mono);
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.control-tabs {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
border-bottom: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.control-tabs button {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
padding: 0.75rem;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
|
|
|
|
|
transition: all 0.2s;
|
|
|
|
|
|
background-color: var(--vp-c-bg-alt);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.control-tabs button.active {
|
|
|
|
|
|
background-color: var(--vp-c-bg);
|
|
|
|
|
|
color: var(--vp-c-brand);
|
|
|
|
|
|
border-bottom: 2px solid var(--vp-c-brand);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.visualization-area {
|
|
|
|
|
|
padding: 2rem;
|
|
|
|
|
|
min-height: 250px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* RNN Styles */
|
|
|
|
|
|
.sequence-display {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
margin-bottom: 2rem;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.word-item {
|
|
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
background-color: var(--vp-c-bg);
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.word-item.active {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
border-color: var(--vp-c-brand);
|
|
|
|
|
|
background-color: var(--vp-c-brand-soft);
|
|
|
|
|
|
transform: scale(1.1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.rnn-process {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 1.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hidden-state-track {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
gap: 1rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hidden-state-box {
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
height: 80px;
|
|
|
|
|
|
border: 2px solid var(--vp-c-text-2);
|
2026-02-14 20:23:34 +08:00
|
|
|
|
border-radius: 6px;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
background-color: var(--vp-c-bg);
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.memory-content {
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
z-index: 2;
|
|
|
|
|
|
font-size: 0.8rem;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.memory-level {
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
bottom: 0;
|
|
|
|
|
|
left: 0;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
background-color: var(--vp-c-brand);
|
|
|
|
|
|
opacity: 0.3;
|
|
|
|
|
|
transition: height 0.3s;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.output-box {
|
|
|
|
|
|
padding: 0.5rem;
|
|
|
|
|
|
border: 1px dashed var(--vp-c-text-2);
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
min-width: 80px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Transformer Styles */
|
|
|
|
|
|
.sentence-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 0.5rem;
|
|
|
|
|
|
margin-bottom: 1.5rem;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.t-word {
|
|
|
|
|
|
padding: 0.25rem 0.5rem;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: background-color 0.2s;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.t-word:hover {
|
|
|
|
|
|
border-color: var(--vp-c-brand);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.attention-info {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
min-height: 3rem;
|
2026-02-14 20:23:34 +08:00
|
|
|
|
padding: 0.75rem;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
background-color: var(--vp-c-bg);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sub-info {
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
|
|
|
|
|
margin-top: 0.5rem;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.desc-text {
|
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
|
font-size: 0.9rem;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
max-width: 600px;
|
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
|
margin-right: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|