<template>
  <div class="module-container">
    <div class="module-header">
      <span class="module-title">{{ title }}</span>
    </div>
    <div class="module-content">
      <slot></slot>
    </div>
  </div>
</template>

<script setup>
defineProps({
  title: {
    type: String,
    default: ''
  }
})
</script>

<style lang="less" scoped>
.module-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  // background: rgba(13, 80, 122, 0.3);
  // border: 1px solid rgba(112, 207, 231, 0.3);
  // border-radius: 4px;

}

.module-header {
  width: 100%;
  padding: 10px;
  display: flex;
  align-items: center;
  text-align: center;
  border: 1px solid #eee;
  justify-content: center;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.module-title {
  font-size: 27px;
  font-weight: 600;
  color: #2E75B6;
  text-align: center;
}

.module-content {
  flex: 1;


}
</style>
