2026-02-12 22:35:33 +08:00
|
|
|
|
<script setup>
|
|
|
|
|
|
const props = defineProps({
|
|
|
|
|
|
title: {
|
|
|
|
|
|
type: String,
|
|
|
|
|
|
default: '本幕小结'
|
|
|
|
|
|
},
|
|
|
|
|
|
sections: {
|
|
|
|
|
|
type: Array,
|
|
|
|
|
|
default: () => []
|
|
|
|
|
|
},
|
|
|
|
|
|
outputs: {
|
|
|
|
|
|
type: Array,
|
|
|
|
|
|
default: () => []
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|
<div class="summary-card">
|
|
|
|
|
|
<div class="summary-header">
|
|
|
|
|
|
<div class="header-icon">📚</div>
|
|
|
|
|
|
<div class="header-content">
|
|
|
|
|
|
<div class="summary-title">{{ title }}</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="summary-body">
|
|
|
|
|
|
<!-- Sections -->
|
|
|
|
|
|
<div v-if="sections.length > 0" class="sections-container">
|
|
|
|
|
|
<div v-for="(section, index) in sections" :key="index" class="section-item">
|
|
|
|
|
|
<div class="section-header">
|
|
|
|
|
|
<span class="section-number">{{ section.number }}</span>
|
|
|
|
|
|
<span class="section-title">{{ section.title }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<ul class="section-list">
|
|
|
|
|
|
<li v-for="(item, itemIndex) in section.items" :key="itemIndex" class="list-item">
|
|
|
|
|
|
<span class="item-marker">•</span>
|
|
|
|
|
|
<span class="item-content" v-html="item"></span>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Outputs -->
|
|
|
|
|
|
<div v-if="outputs.length > 0" class="outputs-section">
|
|
|
|
|
|
<div class="outputs-header">
|
|
|
|
|
|
<span class="outputs-icon">📦</span>
|
|
|
|
|
|
<span class="outputs-title">本幕输出:</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<ul class="outputs-list">
|
|
|
|
|
|
<li v-for="(output, index) in outputs" :key="index" class="output-item">
|
|
|
|
|
|
<span class="output-marker">✓</span>
|
|
|
|
|
|
<span class="output-content" v-html="output"></span>
|
|
|
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.summary-card {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
margin: 14px 0;
|
|
|
|
|
|
border-radius: 14px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
background: linear-gradient(
|
2026-02-13 00:36:06 +08:00
|
|
|
|
160deg,
|
|
|
|
|
|
rgba(var(--vp-c-brand-rgb), 0.06) 0%,
|
|
|
|
|
|
rgba(var(--vp-c-brand-rgb), 0.015) 40%,
|
|
|
|
|
|
var(--vp-c-bg) 100%
|
2026-02-12 22:35:33 +08:00
|
|
|
|
);
|
2026-02-13 00:36:06 +08:00
|
|
|
|
border: 1px solid rgba(var(--vp-c-brand-rgb), 0.12);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
overflow: hidden;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 8px 24px rgba(0, 0, 0, 0.06),
|
|
|
|
|
|
0 2px 8px rgba(0, 0, 0, 0.04);
|
|
|
|
|
|
transition: transform 0.2s ease, box-shadow 0.2s ease;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.summary-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 10px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
padding: 10px 14px;
|
|
|
|
|
|
background: linear-gradient(
|
2026-02-13 00:36:06 +08:00
|
|
|
|
120deg,
|
|
|
|
|
|
rgba(var(--vp-c-brand-rgb), 0.16),
|
|
|
|
|
|
rgba(var(--vp-c-brand-rgb), 0.04)
|
2026-02-12 22:35:33 +08:00
|
|
|
|
);
|
2026-02-13 00:36:06 +08:00
|
|
|
|
border-bottom: 1px solid rgba(var(--vp-c-brand-rgb), 0.16);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-icon {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
width: 30px;
|
|
|
|
|
|
height: 30px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
font-size: 1.1em;
|
|
|
|
|
|
background: rgba(var(--vp-c-brand-rgb), 0.18);
|
|
|
|
|
|
color: var(--vp-c-brand);
|
|
|
|
|
|
box-shadow: inset 0 0 0 1px rgba(var(--vp-c-brand-rgb), 0.2);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.header-content {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.summary-title {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 1em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
font-weight: 700;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
color: var(--vp-c-text-1);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
letter-spacing: 0.2px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.summary-body {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
padding: 12px 14px 14px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Sections */
|
|
|
|
|
|
.sections-container {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 10px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-item {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
background: var(--vp-c-bg);
|
|
|
|
|
|
border-radius: 12px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
padding: 10px 12px;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
border: 1px solid rgba(var(--vp-c-brand-rgb), 0.12);
|
|
|
|
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
|
|
|
|
|
|
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-item:hover {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
transform: translateY(-1px);
|
|
|
|
|
|
border-color: rgba(var(--vp-c-brand-rgb), 0.3);
|
|
|
|
|
|
box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-header {
|
|
|
|
|
|
display: flex;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
gap: 4px;
|
|
|
|
|
|
margin-bottom: 8px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-number {
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
min-width: 24px;
|
|
|
|
|
|
height: 24px;
|
|
|
|
|
|
padding: 0 7px;
|
|
|
|
|
|
background: linear-gradient(
|
|
|
|
|
|
135deg,
|
|
|
|
|
|
var(--vp-c-brand),
|
|
|
|
|
|
var(--vp-c-brand-dark)
|
|
|
|
|
|
);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
color: white;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
border-radius: 999px;
|
|
|
|
|
|
font-size: 0.74em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
font-weight: 700;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
box-shadow: 0 4px 10px rgba(var(--vp-c-brand-rgb), 0.3);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-title {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.95em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-list {
|
|
|
|
|
|
list-style: none;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 4px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.list-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: baseline;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 8px;
|
|
|
|
|
|
padding: 3px 0;
|
|
|
|
|
|
line-height: 1.45;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item-marker {
|
|
|
|
|
|
color: var(--vp-c-brand);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
font-size: 0.9em;
|
|
|
|
|
|
line-height: 1;
|
|
|
|
|
|
flex-shrink: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item-content {
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.92em;
|
|
|
|
|
|
line-height: 1.55;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item-content :deep(strong) {
|
|
|
|
|
|
color: var(--vp-c-brand-dark);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Outputs */
|
|
|
|
|
|
.outputs-section {
|
|
|
|
|
|
margin-top: 12px;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
padding: 10px 12px 8px;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
background: rgba(var(--vp-c-brand-rgb), 0.06);
|
|
|
|
|
|
border: 1px dashed rgba(var(--vp-c-brand-rgb), 0.25);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.outputs-header {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 6px;
|
|
|
|
|
|
margin-bottom: 8px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.outputs-icon {
|
|
|
|
|
|
font-size: 1em;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.outputs-title {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.9em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.outputs-list {
|
|
|
|
|
|
list-style: none;
|
|
|
|
|
|
padding: 0;
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 4px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.output-item {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: baseline;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
gap: 8px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
padding: 2px 0;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
line-height: 1.5;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.output-marker {
|
|
|
|
|
|
color: #42d392;
|
|
|
|
|
|
font-weight: 700;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.85em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
line-height: 1;
|
|
|
|
|
|
flex-shrink: 0;
|
2026-02-13 00:36:06 +08:00
|
|
|
|
width: 18px;
|
|
|
|
|
|
height: 18px;
|
|
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
|
|
|
|
|
background: rgba(66, 211, 146, 0.12);
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.output-content {
|
|
|
|
|
|
color: var(--vp-c-text-1);
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.92em;
|
|
|
|
|
|
line-height: 1.55;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.output-content :deep(strong) {
|
|
|
|
|
|
color: var(--vp-c-brand-dark);
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Responsive */
|
|
|
|
|
|
@media (max-width: 640px) {
|
|
|
|
|
|
.summary-card {
|
|
|
|
|
|
margin: 14px 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.summary-header {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
padding: 8px 10px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.summary-body {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
padding: 10px;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-item {
|
|
|
|
|
|
padding: 8px 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.section-title {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.9em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.item-content,
|
|
|
|
|
|
.output-content {
|
2026-02-13 00:36:06 +08:00
|
|
|
|
font-size: 0.88em;
|
2026-02-12 22:35:33 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2026-02-13 00:36:06 +08:00
|
|
|
|
</style>
|