<template>
  <div class="legacy-module-banner">
    <div class="legacy-module-banner__label">舊版模組</div>
    <p class="legacy-module-banner__title">{{ title }}</p>
    <p class="legacy-module-banner__body">{{ description }}</p>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    required: true,
  },
  description: {
    type: String,
    required: true,
  },
});
</script>

<style scoped>
.legacy-module-banner {
  padding: 14px 18px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
}

.legacy-module-banner__label {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

.legacy-module-banner__title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
}

.legacy-module-banner__body {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.65;
}
</style>
