EntityDetailSections.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <template>
  2. <div class="entity-sections" :class="{ 'is-device': presentation === 'device' }" data-entity-detail-sections>
  3. <div v-if="view.summary.length && presentation !== 'device'" class="entity-sections__summary">
  4. <div v-for="item in view.summary" :key="item.label">
  5. <span>{{ item.label }}</span>
  6. <!-- 等级用四档语义色;状态只在抬头徽标出现,摘要卡不再重复。 -->
  7. <b v-if="item.tone" :data-tone="item.tone" class="entity-sections__tag">{{ item.value }}</b>
  8. <b v-else class="entity-sections__value">{{ item.value }}</b>
  9. </div>
  10. </div>
  11. <ol v-if="view.stage.length" class="entity-sections__stage">
  12. <li v-for="step in view.stage" :key="step.label" :class="'is-' + step.state"><i></i><span>{{ step.label }}</span></li>
  13. </ol>
  14. <nav v-if="tabs.length" class="entity-sections__tabs" aria-label="详情分区">
  15. <div class="entity-sections__tab-list">
  16. <button v-for="tab in tabs" :key="tab.key" type="button" role="tab" :aria-selected="tab.key === activeTab" :class="{ 'is-active': tab.key === activeTab }" @click="activeTab = tab.key">{{ tab.label }}</button>
  17. </div>
  18. <slot name="tabs-action"></slot>
  19. </nav>
  20. <section v-if="showOverview" v-for="group in activeSections" :key="group.title" class="entity-sections__group">
  21. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon(group.title)"></span>{{ group.title }}</h3>
  22. <dl class="entity-sections__grid">
  23. <div v-for="item in group.fields" :key="item.label" :class="{ 'is-wide': item.wide }">
  24. <dt>{{ item.label }}</dt>
  25. <dd>
  26. <!-- 键值网格(风险因素):键弱化、值强调,长值折行(规格 §8)。 -->
  27. <div v-if="item.pairs" class="entity-sections__pairs">
  28. <div v-for="(pair, index) in item.pairs" :key="index" class="entity-sections__pair"><span>{{ pair[0] }}</span><b>{{ pair[1] }}</b></div>
  29. </div>
  30. <template v-else>
  31. {{ item.value }}<button v-if="item.action" type="button" class="entity-sections__locate entity-sections__action" :data-action="item.action.kind" @click.stop="runAction(item.action)">{{ ACTION_TEXT[item.action.kind] || '查看' }}</button>
  32. </template>
  33. <small v-if="item.note" class="entity-sections__note">{{ item.note }}</small>
  34. </dd>
  35. </div>
  36. </dl>
  37. </section>
  38. <section v-if="showPeople && view.people.length" class="entity-sections__group">
  39. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('相关人员')"></span>相关人员</h3>
  40. <ol class="entity-sections__people">
  41. <li v-for="(item, index) in view.people" :key="item.role">
  42. <span class="entity-sections__people-role">{{ item.role }}</span>
  43. <b>{{ item.name }}</b>
  44. <i v-if="index < view.people.length - 1" class="entity-sections__people-arrow" aria-hidden="true"></i>
  45. </li>
  46. </ol>
  47. </section>
  48. <section v-if="showDevices && view.devices.length" class="entity-sections__group">
  49. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('设备信息')"></span>设备信息</h3>
  50. <ul><li v-for="item in view.devices" :key="item.code || item.name"><b>{{ item.name }}</b><span>{{ [item.code, item.status].filter(Boolean).join(' · ') }}</span><small v-if="item.type">{{ item.type }}</small><small v-if="item.location">{{ item.location }}</small><button v-if="item.code" type="button" class="entity-sections__locate" :data-locate-device="item.code" @click.stop="locateDevice(item.code)">定位 {{ item.code }}</button></li></ul>
  51. </section>
  52. <section v-if="showRecords" class="entity-sections__group">
  53. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('处置记录')"></span>处置记录</h3>
  54. <p v-if="!view.records.length" class="entity-sections__empty">暂无处置记录</p>
  55. <ol v-else class="entity-sections__records">
  56. <li v-for="(item, index) in view.records" :key="index" class="entity-sections__record">
  57. <i class="entity-sections__record-dot" aria-hidden="true"></i>
  58. <div class="entity-sections__record-head"><b>{{ item.title }}</b><time v-if="item.time">{{ item.time }}</time></div>
  59. <span v-if="item.operator" class="entity-sections__record-meta">{{ item.operator }}</span>
  60. <p v-if="item.description">{{ item.description }}</p>
  61. </li>
  62. </ol>
  63. </section>
  64. <section v-if="showAttachments" class="entity-sections__group">
  65. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('附件')"></span>附件</h3>
  66. <ImageGallery :items="view.attachments" empty-text="暂无附件" size="large" />
  67. </section>
  68. <section v-if="showRelated" class="entity-sections__group">
  69. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('关联信息')"></span>关联信息</h3>
  70. <p v-if="!view.devices.length" class="entity-sections__empty">暂无关联设备数据</p>
  71. <ul v-else><li v-for="item in view.devices" :key="item.code || item.name"><b>{{ item.name }}</b><span>{{ item.code }} · {{ item.status }}</span><small>{{ item.type || item.location }}</small><button v-if="item.code" type="button" class="entity-sections__locate" :data-locate-device="item.code" @click.stop="locateDevice(item.code)">定位 {{ item.code }}</button></li></ul>
  72. </section>
  73. <section v-if="showAlarms" class="entity-sections__group">
  74. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('关联报警')"></span>关联报警</h3>
  75. <p v-if="!view.relatedAlarms.length" class="entity-sections__empty">暂无关联报警</p>
  76. <ul v-else><li v-for="(item, index) in view.relatedAlarms" :key="item.code || index"><b>{{ item.name }}</b><span>{{ item.code }} · {{ item.status }}</span></li></ul>
  77. </section>
  78. <section v-if="showFlow && (view.track || view.maintenanceImages.length)" class="entity-sections__group">
  79. <h3><span class="entity-sections__icon" aria-hidden="true" v-html="sectionIcon('处置轨迹')"></span>处置轨迹</h3>
  80. <WorkOrderTimeline v-if="view.track" :track="view.track" />
  81. <div v-if="view.maintenanceImages.length" class="entity-sections__maintenance" data-wo-maintenance-images>
  82. <div v-for="group in view.maintenanceImages" :key="group.key" class="entity-sections__maintenance-group">
  83. <h4>{{ group.label }}</h4>
  84. <ImageGallery :items="group.images" />
  85. </div>
  86. </div>
  87. </section>
  88. </div>
  89. </template>
  90. <script setup>
  91. import { computed, ref, watch } from 'vue'
  92. import { entityDetailView } from '../domain/entityDetail.js'
  93. import WorkOrderTimeline from './WorkOrderTimeline.vue'
  94. import ImageGallery from './ImageGallery.vue'
  95. const props = defineProps({ detail: { type: Object, default: null }, presentation: { type: String, default: 'entity' } })
  96. const emit = defineEmits(['locate-device', 'focus-network'])
  97. /** 明细里的联动按钮文案;认不出的动作不渲染按钮。 */
  98. const ACTION_TEXT = { 'focus-network': '聚焦管网' }
  99. const view = computed(() => entityDetailView(props.detail))
  100. // 分区图标:静态内联 SVG(不引第三方图标库),统一当前色 14px。
  101. const SECTION_ICONS = {
  102. '事件摘要': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 3h7l4 4v14H7z"/><path d="M14 3v4h4"/><path d="M9.5 12h5M9.5 15.5h5"/></svg>',
  103. '监测读数': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 12h4l2.5-6 4 12 2.5-6h5"/></svg>',
  104. '关联信息': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 14a4 4 0 0 0 5.7 0l3-3a4 4 0 0 0-5.7-5.7l-1.2 1.2"/><path d="M14 10a4 4 0 0 0-5.7 0l-3 3a4 4 0 0 0 5.7 5.7l1.2-1.2"/></svg>',
  105. '处置与附件': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M20 11.5 12.5 19a4.6 4.6 0 0 1-6.5-6.5l8-8a3.1 3.1 0 0 1 4.4 4.4l-8 8a1.6 1.6 0 0 1-2.2-2.2l7.2-7.2"/></svg>',
  106. '基本信息': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="3.5" width="14" height="17" rx="2.5"/><path d="M9 8h6M9 12h6M9 16h4"/></svg>',
  107. '位置与归属': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 21s7-6.1 7-11a7 7 0 1 0-14 0c0 4.9 7 11 7 11z"/><circle cx="12" cy="10" r="2.5"/></svg>',
  108. '业务详情': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M12 3 3 8l9 5 9-5-9-5z"/><path d="M3 13l9 5 9-5"/></svg>',
  109. '相关人员': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="9" cy="8" r="3"/><path d="M3.5 20a5.5 5.5 0 0 1 11 0"/><path d="M16 5.5a3 3 0 0 1 0 5.8M17.5 14.5a5.5 5.5 0 0 1 3 5"/></svg>',
  110. '设备信息': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M9 3v3M15 3v3M9 18v3M15 18v3M3 9h3M3 15h3M18 9h3M18 15h3"/></svg>',
  111. '处置记录': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M8 6h12M8 12h12M8 18h12"/><circle cx="4" cy="6" r="1"/><circle cx="4" cy="12" r="1"/><circle cx="4" cy="18" r="1"/></svg>',
  112. '附件': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3.5" y="4.5" width="17" height="15" rx="2.5"/><circle cx="9" cy="10" r="2"/><path d="m4.5 17 4.5-4 3 2.6 3-3 3.5 4"/></svg>',
  113. '关联报警': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M18 8a6 6 0 1 0-12 0c0 6-2.5 8-2.5 8h17S18 14 18 8z"/><path d="M10 20a2.2 2.2 0 0 0 4 0"/></svg>',
  114. '处置轨迹': '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="6" cy="6" r="2.5"/><circle cx="18" cy="18" r="2.5"/><path d="M8.5 6H14a4 4 0 0 1 0 8h-4a4 4 0 0 0 0 8h5.5"/></svg>',
  115. }
  116. const DEFAULT_ICON = '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="16" height="16" rx="3"/></svg>'
  117. function sectionIcon(title) { return SECTION_ICONS[title] || DEFAULT_ICON }
  118. const activeTab = ref('')
  119. const tabs = computed(() => view.value.tabs || [])
  120. watch(() => props.detail && (props.detail.kind + '|' + props.detail.id), () => { activeTab.value = (tabs.value[0] && tabs.value[0].key) || '' }, { immediate: true })
  121. const showOverview = computed(() => !activeTab.value || ['overview','business'].includes(activeTab.value))
  122. const activeSections = computed(() => {
  123. if (activeTab.value === 'business') return view.value.sections.filter((group) => group.title === '业务详情')
  124. if (activeTab.value === 'overview') return view.value.sections.filter((group) => group.title !== '业务详情')
  125. return view.value.sections
  126. })
  127. const showPeople = computed(() => showOverview.value)
  128. // 工单的设备信息只放「设备信息」页签,避免概览与页签各一份;其它实体维持概览可见。
  129. const showDevices = computed(() => view.value.kind === 'work-order'
  130. ? activeTab.value === 'devices'
  131. : (!activeTab.value || activeTab.value === 'overview' || activeTab.value === 'devices'))
  132. const showRecords = computed(() => activeTab.value === 'records')
  133. const showAttachments = computed(() => activeTab.value === 'attachments')
  134. const showFlow = computed(() => activeTab.value === 'flow')
  135. const showRelated = computed(() => activeTab.value === 'related')
  136. const showAlarms = computed(() => activeTab.value === 'alarms')
  137. /** 关联设备定位:沿用运行监测「设备台账」的定位方法(由外壳转给 monitoringStore)。 */
  138. /** 明细里的联动出口(目前只有管网聚焦):组件不认识地图,交给外壳。 */
  139. function runAction(action) {
  140. if (action && action.kind === 'focus-network' && action.code) emit('focus-network', action.code)
  141. }
  142. function locateDevice(code) {
  143. if (!code) return
  144. emit('locate-device', code)
  145. }
  146. </script>
  147. <style scoped>
  148. .entity-sections { display: grid; gap: 8px; min-width: 0; font-size: calc(12.5 * var(--u, 1px)); }
  149. /* 摘要卡固定两列:窄抽屉里不再挤成三列;落单的最后一张(总数为奇数)独占整行。 */
  150. .entity-sections__summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  151. .entity-sections__summary > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  152. /* 网格子项允许收缩,长值才能折行而不是把容器撑出横向滚动。 */
  153. .entity-sections__summary > div,
  154. .entity-sections__grid > div { min-width: 0; }
  155. .entity-sections__summary > div,
  156. .entity-sections__group { padding: 9px 10px; border: 1px solid rgba(1, 171, 234, .18); border-left-width: 2px; border-left-color: rgba(1, 171, 234, .42); border-radius: 8px; background: linear-gradient(180deg, rgba(0, 35, 96, .32), rgba(0, 16, 52, .26)); }
  157. .entity-sections__summary span { display: block; color: var(--muted); font-size: calc(10.5 * var(--u, 1px)); letter-spacing: .04em; }
  158. .entity-sections__summary .entity-sections__value { display: block; margin-top: 2px; color: var(--text-strong, #eaf6ff); font-size: calc(13 * var(--u, 1px)); font-weight: 700; overflow-wrap: anywhere; }
  159. /* 关键修正:状态/等级徽标必须是 inline-block,不能被 .summary b 的块级规则拉满整行。 */
  160. .entity-sections__summary .entity-sections__tag { display: inline-block; margin-top: 3px; }
  161. /* 等级/状态徽标:同一套语义色(等级四档 + 状态四档)。 */
  162. .entity-sections__tag { padding: 0 7px; border: 1px solid rgba(1, 171, 234, .35); border-radius: 9px; font-weight: 700; line-height: 1.5; }
  163. .entity-sections__tag[data-tone='lv1'] { border-color: rgba(255, 59, 82, .65); background: rgba(255, 59, 82, .14); color: #ffc2c9; }
  164. .entity-sections__tag[data-tone='lv2'] { border-color: rgba(255, 176, 32, .65); background: rgba(255, 176, 32, .14); color: #ffdc91; }
  165. .entity-sections__tag[data-tone='lv3'] { border-color: rgba(1, 171, 234, .65); background: rgba(1, 171, 234, .14); color: #b7e4ff; }
  166. .entity-sections__tag[data-tone='lv4'] { border-color: rgba(53, 219, 146, .6); background: rgba(53, 219, 146, .14); color: #b8f2d4; }
  167. .entity-sections__tag[data-tone='handled'] { border-color: rgba(169, 112, 255, .65); background: rgba(169, 112, 255, .16); color: #dcc9ff; }
  168. .entity-sections__tag[data-tone='neutral'] { border-color: rgba(86, 128, 176, .5); background: rgba(86, 128, 176, .12); color: #c4d5e8; }
  169. /* 流程节点 */
  170. .entity-sections__stage { display: flex; margin: 0; padding: 4px 0 8px; list-style: none; }
  171. .entity-sections__stage li { position: relative; flex: 1; min-width: 0; text-align: center; color: var(--muted); font-size: calc(10 * var(--u, 1px)); }
  172. .entity-sections__stage li:before { content: ''; position: absolute; top: 6px; left: 0; width: 100%; height: 1px; background: rgba(86, 128, 176, .5); }
  173. .entity-sections__stage li:first-child:before { left: 50%; width: 50%; }
  174. .entity-sections__stage li:last-child:before { width: 50%; }
  175. .entity-sections__stage i { position: relative; z-index: 1; display: block; width: 13px; height: 13px; margin: 0 auto 4px; border: 1px solid var(--muted); border-radius: 50%; background: #061432; }
  176. .entity-sections__stage .is-done i,
  177. .entity-sections__stage .is-active i { border-color: var(--cyan-hi); background: var(--cyan); }
  178. .entity-sections__stage .is-active { color: var(--text-strong); }
  179. /* 页签:字体收敛到 12,去掉横向滚动条。 */
  180. .entity-sections__tabs { position: relative; display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: nowrap; overflow: visible; border-bottom: 1px solid rgba(1, 171, 234, .22); }
  181. .entity-sections__tab-list { display: flex; flex: 1 1 auto; min-width: 0; gap: 2px; overflow: visible; padding-right: 0; }
  182. .entity-sections__tabs > :not(.entity-sections__tab-list) { position: absolute; right: 0; top: 50%; transform: translateY(-50%); z-index: 2; }
  183. .entity-sections__tab-list button { padding: 5px 9px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--text-2); white-space: nowrap; cursor: pointer; font: inherit; font-size: calc(12 * var(--u, 1px)); line-height: 1.35; }
  184. .entity-sections__tab-list .is-active { border-bottom-color: var(--cyan-hi); color: var(--text-strong); }
  185. /* 分区标题 + 图标 */
  186. .entity-sections__group h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--cyan-hi); font-size: calc(11.5 * var(--u, 1px)); font-weight: 700; letter-spacing: .05em; }
  187. .entity-sections__icon { display: inline-flex; width: 14px; height: 14px; flex: 0 0 auto; opacity: .92; }
  188. .entity-sections__icon :deep(svg) { width: 100%; height: 100%; }
  189. /* 概览字段:不再用省略号;代码类字段整行展示,长串允许折行而不是被截断。 */
  190. .entity-sections__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 12px; margin: 0; }
  191. .entity-sections__grid .is-wide { grid-column: 1 / -1; }
  192. .entity-sections__grid dt { color: var(--muted); font-size: calc(10.5 * var(--u, 1px)); }
  193. /* 所有详情消费方共用:字段值在任意位置折行,长编码不会把容器撑出横向滚动。 */
  194. .entity-sections dd { margin: 1px 0 0; color: var(--text); font-size: calc(12.5 * var(--u, 1px)); line-height: 1.45; overflow-wrap: anywhere; }
  195. .entity-sections__note { display: block; margin-top: 1px; color: var(--muted); font-size: calc(10 * var(--u, 1px)); }
  196. /* 风险因素键值网格:两列,键弱化、值强调;长值折行不横向溢出。 */
  197. .entity-sections__pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; margin-top: 2px; }
  198. .entity-sections__pair { display: flex; gap: 6px; min-width: 0; }
  199. .entity-sections__pair span { flex: none; color: var(--muted); font-size: calc(10.5 * var(--u, 1px)); }
  200. .entity-sections__pair b { min-width: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
  201. /* 相关人员:按处置顺序横向排列,箭头表达先后关系。 */
  202. .entity-sections__people { display: flex; align-items: stretch; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
  203. .entity-sections__people li { position: relative; flex: 1 1 0; min-width: 96px; padding: 2px 16px 2px 0; }
  204. .entity-sections__people li + li { margin-left: 14px; }
  205. .entity-sections__people-role { display: block; color: var(--muted); font-size: calc(10 * var(--u, 1px)); }
  206. .entity-sections__people b { display: block; margin-top: 2px; color: var(--text-strong); font-size: calc(12 * var(--u, 1px)); overflow-wrap: anywhere; }
  207. .entity-sections__people-arrow { position: absolute; right: -11px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 6px solid rgba(53, 216, 255, .7); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
  208. /* 设备 / 关联 / 报警列表 */
  209. .entity-sections__group ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
  210. .entity-sections__group ul li { padding: 5px 0; }
  211. .entity-sections__group ul li + li { border-top: 1px solid rgba(1, 171, 234, .12); }
  212. .entity-sections__group li b { display: block; color: var(--text-strong); font-size: calc(12 * var(--u, 1px)); overflow-wrap: anywhere; }
  213. .entity-sections__group li span,
  214. .entity-sections__group li small,
  215. .entity-sections__group time { display: block; color: var(--muted); font-size: calc(10.5 * var(--u, 1px)); overflow-wrap: anywhere; }
  216. /* 处理流程页签:维修前/后图片与时间线同区展示;图片查看复用 ImageGallery。 */
  217. .entity-sections__maintenance { display: grid; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(1, 171, 234, .18); }
  218. .entity-sections__maintenance-group h4 { margin: 0 0 5px; color: var(--text-2); font-size: calc(10.5 * var(--u, 1px)); font-weight: 600; letter-spacing: .04em; }
  219. /* 处置记录:竖向时间线。 */
  220. .entity-sections__records { position: relative; display: grid; gap: 12px; margin: 0; padding: 0 0 0 16px; list-style: none; }
  221. .entity-sections__records:before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 1px; background: linear-gradient(180deg, rgba(1, 171, 234, .55), rgba(1, 171, 234, .08)); }
  222. .entity-sections__record { position: relative; }
  223. .entity-sections__record-dot { position: absolute; left: -16px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(1, 171, 234, .15); }
  224. .entity-sections__record-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
  225. .entity-sections__record-head b { display: inline; color: var(--text-strong); font-size: calc(12 * var(--u, 1px)); }
  226. .entity-sections__record-head time { display: inline; color: var(--muted); font-size: calc(10 * var(--u, 1px)); white-space: nowrap; }
  227. .entity-sections__record-meta { display: block; color: var(--cyan-hi); font-size: calc(10 * var(--u, 1px)); opacity: .92; }
  228. .entity-sections__record p { margin: 3px 0 0; color: var(--text-2); font-size: calc(11.5 * var(--u, 1px)); line-height: 1.5; }
  229. .entity-sections__empty { margin: 0; color: var(--muted); font-size: calc(10.5 * var(--u, 1px)); }
  230. .entity-sections__locate { margin-top: 4px; padding: 0 8px; border: 1px solid rgba(1, 171, 234, .45); border-radius: 9px; background: rgba(0, 20, 72, .5); color: var(--cyan-hi, #35d8ff); font: inherit; font-size: calc(10 * var(--u, 1px)); cursor: pointer; }
  231. .entity-sections__locate:hover,
  232. .entity-sections__locate:focus-visible { border-color: var(--cyan-hi, #00b8ff); color: var(--text-strong); }
  233. </style>