2026-01-15 20:10:19 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="tcp-handshake-demo">
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="controls">
|
|
|
|
|
|
<div class="status-indicator">
|
2026-01-18 12:21:49 +08:00
|
|
|
|
{{ t.statusLabel }}:
|
|
|
|
|
|
<span :class="connectionStatus.toLowerCase()">{{ statusText }}</span>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="buttons">
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<button
|
|
|
|
|
|
v-if="step === 0"
|
|
|
|
|
|
class="action-btn"
|
|
|
|
|
|
@click="startHandshake"
|
|
|
|
|
|
>
|
2026-01-18 12:21:49 +08:00
|
|
|
|
{{ t.connect }}
|
|
|
|
|
|
</button>
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<button
|
|
|
|
|
|
v-else
|
|
|
|
|
|
class="reset-btn"
|
|
|
|
|
|
@click="reset"
|
|
|
|
|
|
>
|
|
|
|
|
|
{{ t.reset }}
|
|
|
|
|
|
</button>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="sequence-diagram">
|
|
|
|
|
|
<!-- Client Timeline -->
|
|
|
|
|
|
<div class="timeline client">
|
|
|
|
|
|
<div class="actor">
|
|
|
|
|
|
<span class="icon">💻</span>
|
|
|
|
|
|
<span class="name">{{ t.client }}</span>
|
|
|
|
|
|
</div>
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div class="line" />
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="state-marker"
|
|
|
|
|
|
:class="{ active: step >= 1 }"
|
|
|
|
|
|
>
|
|
|
|
|
|
SYN_SENT
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="state-marker"
|
|
|
|
|
|
:class="{ active: step >= 3 }"
|
|
|
|
|
|
>
|
2026-01-18 12:21:49 +08:00
|
|
|
|
ESTABLISHED
|
|
|
|
|
|
</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-16 19:10:21 +08:00
|
|
|
|
<!-- Interaction Area -->
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="interaction-space">
|
|
|
|
|
|
<!-- SYN Packet -->
|
|
|
|
|
|
<div class="packet-track">
|
|
|
|
|
|
<transition name="slide-right">
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-if="showSyn"
|
|
|
|
|
|
class="packet syn"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="packet-body">
|
|
|
|
|
|
SYN
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="packet-detail">
|
|
|
|
|
|
SEQ=0
|
|
|
|
|
|
</div>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</transition>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<!-- SYN-ACK Packet -->
|
|
|
|
|
|
<div class="packet-track reverse">
|
|
|
|
|
|
<transition name="slide-left">
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-if="showSynAck"
|
|
|
|
|
|
class="packet syn-ack"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="packet-body">
|
|
|
|
|
|
SYN-ACK
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="packet-detail">
|
|
|
|
|
|
SEQ=0, ACK=1
|
|
|
|
|
|
</div>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</transition>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<!-- ACK Packet -->
|
|
|
|
|
|
<div class="packet-track">
|
|
|
|
|
|
<transition name="slide-right">
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div
|
|
|
|
|
|
v-if="showAck"
|
|
|
|
|
|
class="packet ack"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="packet-body">
|
|
|
|
|
|
ACK
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="packet-detail">
|
|
|
|
|
|
SEQ=1, ACK=1
|
|
|
|
|
|
</div>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</transition>
|
2026-01-16 19:10:21 +08:00
|
|
|
|
</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<!-- Server Timeline -->
|
|
|
|
|
|
<div class="timeline server">
|
|
|
|
|
|
<div class="actor">
|
|
|
|
|
|
<span class="icon">🖥️</span>
|
|
|
|
|
|
<span class="name">{{ t.server }}</span>
|
|
|
|
|
|
</div>
|
2026-02-18 17:38:10 +08:00
|
|
|
|
<div class="line" />
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="state-marker"
|
|
|
|
|
|
:class="{ active: step >= 2 }"
|
|
|
|
|
|
>
|
|
|
|
|
|
SYN_RCVD
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="state-marker"
|
|
|
|
|
|
:class="{ active: step >= 3 }"
|
|
|
|
|
|
>
|
2026-01-18 12:21:49 +08:00
|
|
|
|
ESTABLISHED
|
|
|
|
|
|
</div>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
<div class="description-box">
|
|
|
|
|
|
<p>{{ currentDescription }}</p>
|
2026-01-15 20:10:19 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
2026-01-18 10:24:35 +08:00
|
|
|
|
import { ref, computed } from 'vue'
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
lang: {
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
default: 'zh'
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
// Bilingual text directly
|
|
|
|
|
|
const t = {
|
|
|
|
|
|
statusLabel: '通话状态',
|
|
|
|
|
|
connect: '拨打电话',
|
|
|
|
|
|
reset: '挂断重拨',
|
|
|
|
|
|
client: '我 (顾客)',
|
|
|
|
|
|
server: '玩具店',
|
|
|
|
|
|
status: {
|
|
|
|
|
|
closed: '未通话',
|
|
|
|
|
|
handshaking: '正在拨号...',
|
|
|
|
|
|
established: '通话中 (连接已建立)'
|
|
|
|
|
|
},
|
|
|
|
|
|
steps: {
|
|
|
|
|
|
0: '点击 "拨打电话" 开始确认店铺是否营业。',
|
|
|
|
|
|
1: '步骤 1: 我问 "喂?有人在吗?" (SYN)',
|
|
|
|
|
|
2: '步骤 2: 店员答 "在的!请问有什么事?" (SYN-ACK)',
|
|
|
|
|
|
3: '步骤 3: 我说 "太好了,我想买东西!" (ACK)'
|
|
|
|
|
|
}
|
2026-01-16 19:10:21 +08:00
|
|
|
|
}
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
const step = ref(0)
|
|
|
|
|
|
const showSyn = ref(false)
|
|
|
|
|
|
const showSynAck = ref(false)
|
|
|
|
|
|
const showAck = ref(false)
|
|
|
|
|
|
|
|
|
|
|
|
const connectionStatus = computed(() => {
|
|
|
|
|
|
if (step.value === 0) return 'closed'
|
|
|
|
|
|
if (step.value < 3) return 'handshaking'
|
|
|
|
|
|
return 'established'
|
|
|
|
|
|
})
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
const statusText = computed(() => {
|
|
|
|
|
|
const s = connectionStatus.value
|
|
|
|
|
|
return t.status[s] || s.toUpperCase()
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const currentDescription = computed(() => {
|
|
|
|
|
|
return t.steps[step.value] || ''
|
|
|
|
|
|
})
|
|
|
|
|
|
|
2026-01-18 12:21:49 +08:00
|
|
|
|
const wait = (ms) => new Promise((resolve) => setTimeout(resolve, ms))
|
2026-01-18 10:24:35 +08:00
|
|
|
|
|
|
|
|
|
|
const startHandshake = async () => {
|
|
|
|
|
|
if (step.value > 0) return
|
2026-01-18 12:21:49 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
// Step 1: SYN
|
|
|
|
|
|
step.value = 1
|
|
|
|
|
|
showSyn.value = true
|
|
|
|
|
|
await wait(1500)
|
2026-01-18 12:21:49 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
// Step 2: SYN-ACK
|
|
|
|
|
|
step.value = 2
|
|
|
|
|
|
showSynAck.value = true
|
|
|
|
|
|
await wait(1500)
|
2026-01-18 12:21:49 +08:00
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
// Step 3: ACK
|
2026-01-16 19:10:21 +08:00
|
|
|
|
step.value = 3
|
2026-01-18 10:24:35 +08:00
|
|
|
|
showAck.value = true
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const reset = () => {
|
|
|
|
|
|
step.value = 0
|
2026-01-18 10:24:35 +08:00
|
|
|
|
showSyn.value = false
|
|
|
|
|
|
showSynAck.value = false
|
|
|
|
|
|
showAck.value = false
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.tcp-handshake-demo {
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
2026-02-14 20:23:34 +08:00
|
|
|
|
border-radius: 6px;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
padding: 1.5rem;
|
2026-02-14 20:23:34 +08:00
|
|
|
|
margin: 0.5rem 0;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
font-family: var(--vp-font-family-mono);
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.controls {
|
2026-01-15 20:10:19 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
align-items: center;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
margin-bottom: 2rem;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
padding-bottom: 1rem;
|
|
|
|
|
|
border-bottom: 1px solid var(--vp-c-divider);
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.status-indicator {
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
2026-01-18 12:21:49 +08:00
|
|
|
|
.status-indicator span.closed {
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
}
|
|
|
|
|
|
.status-indicator span.handshaking {
|
|
|
|
|
|
color: #f59e0b;
|
|
|
|
|
|
}
|
|
|
|
|
|
.status-indicator span.established {
|
|
|
|
|
|
color: #10b981;
|
|
|
|
|
|
}
|
2026-01-18 10:24:35 +08:00
|
|
|
|
|
|
|
|
|
|
.action-btn {
|
|
|
|
|
|
background: #3b82f6;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
padding: 0.5rem 1.5rem;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.reset-btn {
|
|
|
|
|
|
background: var(--vp-c-bg-alt);
|
|
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
padding: 0.5rem 1.5rem;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.sequence-diagram {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
height: 300px;
|
|
|
|
|
|
position: relative;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.timeline {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
width: 100px;
|
|
|
|
|
|
position: relative;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.actor {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
margin-bottom: 1rem;
|
|
|
|
|
|
z-index: 2;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
2026-01-18 10:24:35 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.timeline .line {
|
|
|
|
|
|
width: 2px;
|
|
|
|
|
|
background: var(--vp-c-divider);
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.state-marker {
|
|
|
|
|
|
margin-top: 2rem;
|
|
|
|
|
|
padding: 0.3rem 0.6rem;
|
|
|
|
|
|
background: var(--vp-c-bg-alt);
|
2026-01-16 19:10:21 +08:00
|
|
|
|
border: 1px solid var(--vp-c-divider);
|
|
|
|
|
|
border-radius: 4px;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
color: var(--vp-c-text-3);
|
|
|
|
|
|
transition: all 0.3s;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.state-marker.active {
|
|
|
|
|
|
background: #10b981;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
border-color: #10b981;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.interaction-space {
|
2026-01-15 20:10:19 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
justify-content: space-around;
|
|
|
|
|
|
padding: 2rem 0;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.packet-track {
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
position: relative;
|
2026-01-16 19:10:21 +08:00
|
|
|
|
display: flex;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
align-items: center;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.packet-track.reverse {
|
2026-01-16 19:10:21 +08:00
|
|
|
|
justify-content: flex-end;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.packet {
|
|
|
|
|
|
background: #3b82f6;
|
|
|
|
|
|
color: white;
|
|
|
|
|
|
padding: 0.5rem 1rem;
|
|
|
|
|
|
border-radius: 4px;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
min-width: 120px;
|
2026-01-18 12:21:49 +08:00
|
|
|
|
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
2026-01-18 10:24:35 +08:00
|
|
|
|
z-index: 10;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 12:21:49 +08:00
|
|
|
|
.packet.syn-ack {
|
|
|
|
|
|
background: #f59e0b;
|
|
|
|
|
|
}
|
|
|
|
|
|
.packet.ack {
|
|
|
|
|
|
background: #10b981;
|
|
|
|
|
|
}
|
2026-01-15 20:10:19 +08:00
|
|
|
|
|
2026-01-18 12:21:49 +08:00
|
|
|
|
.packet-body {
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
|
|
|
|
|
.packet-detail {
|
|
|
|
|
|
font-size: 0.7rem;
|
|
|
|
|
|
opacity: 0.9;
|
|
|
|
|
|
}
|
2026-01-18 10:24:35 +08:00
|
|
|
|
|
|
|
|
|
|
/* Animations */
|
|
|
|
|
|
.slide-right-enter-active {
|
|
|
|
|
|
animation: slide-right 1.5s linear;
|
|
|
|
|
|
}
|
|
|
|
|
|
.slide-left-enter-active {
|
|
|
|
|
|
animation: slide-left 1.5s linear;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
@keyframes slide-right {
|
2026-01-18 12:21:49 +08:00
|
|
|
|
0% {
|
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
10% {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
90% {
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
100% {
|
|
|
|
|
|
transform: translateX(100%);
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
} /* Not quite right, need to stick */
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
/*
|
|
|
|
|
|
Vue transitions are tricky for "moving across".
|
|
|
|
|
|
Let's use a simpler approach: CSS transitions on left/right property or keyframes.
|
|
|
|
|
|
Actually, for a "send" animation, we want it to move from A to B and then stay or disappear.
|
|
|
|
|
|
Here I want it to appear and move.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
.slide-right-enter-active,
|
|
|
|
|
|
.slide-left-enter-active {
|
|
|
|
|
|
transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1);
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
2026-01-18 10:24:35 +08:00
|
|
|
|
|
|
|
|
|
|
.slide-right-enter-from {
|
|
|
|
|
|
transform: translateX(-150px);
|
|
|
|
|
|
opacity: 0;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.slide-right-enter-to {
|
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
opacity: 1;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
/* This is getting complicated with Vue transitions for simple movement.
|
|
|
|
|
|
Let's just use CSS keyframes on the element itself when it renders.
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
.packet {
|
|
|
|
|
|
animation-duration: 1s;
|
|
|
|
|
|
animation-fill-mode: forwards;
|
|
|
|
|
|
animation-timing-function: ease-in-out;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.packet-track .packet {
|
|
|
|
|
|
animation-name: moveRight;
|
|
|
|
|
|
}
|
|
|
|
|
|
.packet-track.reverse .packet {
|
|
|
|
|
|
animation-name: moveLeft;
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
@keyframes moveRight {
|
2026-01-18 12:21:49 +08:00
|
|
|
|
from {
|
|
|
|
|
|
transform: translateX(-100%);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
@keyframes moveLeft {
|
2026-01-18 12:21:49 +08:00
|
|
|
|
from {
|
|
|
|
|
|
transform: translateX(100%);
|
|
|
|
|
|
opacity: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
to {
|
|
|
|
|
|
transform: translateX(0);
|
|
|
|
|
|
opacity: 1;
|
|
|
|
|
|
}
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-01-18 10:24:35 +08:00
|
|
|
|
.description-box {
|
|
|
|
|
|
margin-top: 1rem;
|
2026-02-14 20:23:34 +08:00
|
|
|
|
padding: 0.75rem;
|
2026-01-18 10:24:35 +08:00
|
|
|
|
background: var(--vp-c-bg-soft);
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
min-height: 3rem;
|
|
|
|
|
|
color: var(--vp-c-text-2);
|
2026-01-15 20:10:19 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|