better-staridc-MNBT
1<template>
2 <div class="td-page td-dashboard">
3 <!-- 顶部横幅广告位 -->
4 <div v-if="bannerVisible" class="ad-banner">
5 <a href="https://www.qimingidc.cn/" target="_blank" rel="noopener" class="ad-link">
6 <img :src="adImg" alt="广告" class="ad-img" />
7 </a>
8 <button class="ad-close" title="关闭广告" @click="closeBanner">
9 <i class="mdi mdi-close"></i>
10 </button>
11 </div>
12
13 <!-- 欢迎区 -->
14 <section class="hero">
15 <div class="hero-left">
16 <h2 class="hero-title">{{ greeting }},{{ adminUser }}</h2>
17 <p class="hero-sub">
18 欢迎回到 {{ siteName }} 管理后台 ·
19 <span class="hero-time">{{ nowTime }}</span>
20 </p>
21 </div>
22 <div class="hero-right">
23 <t-tag :theme="updateTagTheme" variant="light" shape="round" size="medium">
24 <i class="mdi" :class="updateIcon"></i>
25 <span style="margin-left: 4px">{{ updateText }}</span>
26 </t-tag>
27 <t-button theme="primary" @click="$router.push('/settings/website')">
28 <i class="mdi mdi-cog-outline"></i>
29 站点设置
30 </t-button>
31 </div>
32 </section>
33
34 <!-- 统计卡片 -->
35 <section class="stat-row">
36 <div class="stat-card" v-for="card in statCards" :key="card.label">
37 <div class="stat-card-body">
38 <div class="stat-label">{{ card.label }}</div>
39 <div class="stat-num" :style="{ color: card.color }">{{ card.value }}</div>
40 <div class="stat-foot">
41 <i class="mdi" :class="card.footIcon"></i>
42 {{ card.foot }}
43 </div>
44 </div>
45 <div class="stat-card-icon" :style="{ background: card.bg, color: card.color }">
46 <i class="mdi" :class="card.icon"></i>
47 </div>
48 </div>
49 </section>
50
51 <!-- 资源监控 gauge -->
52 <section class="section">
53 <div class="section-title">
54 <i class="mdi mdi-chart-arc"></i>
55 <span>资源使用</span>
56 </div>
57 <div class="gauge-grid">
58 <div class="gauge-card">
59 <div class="gauge-head">
60 <div class="gauge-title">
61 <i class="mdi mdi-harddisk"></i>
62 <span>磁盘</span>
63 </div>
64 <t-tag theme="default" size="small" shape="round" variant="light">
65 {{ fmtBytes(info.diskUsed) }} / {{ fmtBytes(info.diskTotal) }}
66 </t-tag>
67 </div>
68 <div ref="diskGaugeRef" class="gauge-body"></div>
69 <div class="gauge-foot">可用 {{ fmtBytes(info.diskFree) }}</div>
70 </div>
71
72 <div class="gauge-card">
73 <div class="gauge-head">
74 <div class="gauge-title">
75 <i class="mdi mdi-cpu-64-bit"></i>
76 <span>CPU 负载</span>
77 </div>
78 <t-tag theme="default" size="small" shape="round" variant="light">
79 {{ fmtLoad(0) }} / {{ fmtLoad(1) }} / {{ fmtLoad(2) }}
80 </t-tag>
81 </div>
82 <div ref="cpuGaugeRef" class="gauge-body"></div>
83 <div class="gauge-foot">1 / 5 / 15 分钟</div>
84 </div>
85
86 <div class="gauge-card">
87 <div class="gauge-head">
88 <div class="gauge-title">
89 <i class="mdi mdi-memory"></i>
90 <span>PHP 内存</span>
91 </div>
92 <t-tag theme="default" size="small" shape="round" variant="light">
93 {{ fmtBytes(info.memCurrent) }} / 峰值 {{ fmtBytes(info.memPeak) }}
94 </t-tag>
95 </div>
96 <div ref="memGaugeRef" class="gauge-body"></div>
97 <div class="gauge-foot">内存限制 {{ info.memoryLimit }}</div>
98 </div>
99 </div>
100 </section>
101
102 <!-- 系统信息 -->
103 <section class="section">
104 <div class="section-title">
105 <i class="mdi mdi-information-outline"></i>
106 <span>系统信息</span>
107 </div>
108 <div class="info-grid">
109 <div class="info-card">
110 <div class="info-card-head">
111 <div class="info-card-icon info-card-icon-blue">
112 <i class="mdi mdi-server"></i>
113 </div>
114 <div class="info-card-name">
115 <strong>服务器</strong>
116 <span>Server Environment</span>
117 </div>
118 <t-tag theme="success" size="small" shape="round" variant="light">
119 <i class="mdi mdi-circle-medium"></i>运行中
120 </t-tag>
121 </div>
122 <table class="info-tbl">
123 <tbody>
124 <tr><td>操作系统</td><td>{{ info.os || '-' }}</td></tr>
125 <tr><td>主机名</td><td>{{ info.hostname || '-' }}</td></tr>
126 <tr><td>Web 服务</td><td>{{ info.serverSoft || '-' }}</td></tr>
127 <tr><td>IP : 端口</td><td>{{ info.serverIp }} : {{ info.serverPort }}</td></tr>
128 <tr><td>服务器时间</td><td>{{ info.serverTime }}</td></tr>
129 <tr><td>时区</td><td>{{ info.timezone }}</td></tr>
130 </tbody>
131 </table>
132 </div>
133
134 <div class="info-card">
135 <div class="info-card-head">
136 <div class="info-card-icon info-card-icon-purple">
137 <i class="mdi mdi-language-php"></i>
138 </div>
139 <div class="info-card-name">
140 <strong>PHP 信息</strong>
141 <span>PHP Runtime</span>
142 </div>
143 <t-tag theme="primary" size="small" shape="round" variant="light">{{ info.phpVersion }}</t-tag>
144 </div>
145 <table class="info-tbl">
146 <tbody>
147 <tr><td>PHP 版本</td><td>{{ info.phpVersion }}</td></tr>
148 <tr><td>运行模式</td><td>{{ info.phpSapi }}</td></tr>
149 <tr><td>内存限制</td><td>{{ info.memoryLimit }}</td></tr>
150 <tr><td>最大执行时间</td><td>{{ info.maxExecTime }}s</td></tr>
151 <tr><td>上传限制</td><td>{{ info.uploadMax }}</td></tr>
152 <tr><td>POST 限制</td><td>{{ info.postMax }}</td></tr>
153 <tr><td>已加载扩展</td><td>{{ info.extCount }} 个</td></tr>
154 </tbody>
155 </table>
156 </div>
157
158 <div class="info-card">
159 <div class="info-card-head">
160 <div class="info-card-icon info-card-icon-green">
161 <i class="mdi mdi-database"></i>
162 </div>
163 <div class="info-card-name">
164 <strong>数据库</strong>
165 <span>Database & Versions</span>
166 </div>
167 <t-tag theme="success" size="small" shape="round" variant="light">
168 <i class="mdi mdi-circle-medium"></i>已连接
169 </t-tag>
170 </div>
171 <table class="info-tbl">
172 <tbody>
173 <tr><td>数据库版本</td><td>{{ info.dbVersion }}</td></tr>
174 <tr><td>Web 版本</td><td>{{ info.webVersion }}</td></tr>
175 <tr><td>SQL 版本</td><td>{{ info.sqlVersion }}</td></tr>
176 <tr><td>主机数量</td><td>{{ hosts }}</td></tr>
177 <tr><td>宝塔面板</td><td>{{ btPanels }}</td></tr>
178 <tr><td>节点数量</td><td>{{ nodes }}</td></tr>
179 <tr><td>订单总数</td><td>{{ orders }}</td></tr>
180 </tbody>
181 </table>
182 </div>
183 </div>
184 </section>
185 </div>
186</template>
187
188<script setup>
189import { computed, onMounted, onBeforeUnmount, ref, nextTick } from 'vue'
190import { checkUpdate, systemInfo } from '@/admin/api/dashboard'
191import echarts from '@/shared/utils/echarts'
192import adImg from '@/shared/assets/ad3.webp'
193
194const boot = window.__TD_BOOT__ || {}
195const adminUser = boot.adminUser || 'admin'
196const siteName = boot.siteName || 'MNBT'
197
198// 顶部横幅广告(关闭状态记入 localStorage,下次进入不再显示)
199const bannerVisible = ref(true)
200function closeBanner() {
201 bannerVisible.value = false
202 try {
203 localStorage.setItem('td_admin_ad_closed', '1')
204 } catch { /* ignore */ }
205}
206try {
207 if (localStorage.getItem('td_admin_ad_closed') === '1') bannerVisible.value = false
208} catch { /* ignore */ }
209
210// 系统信息:优先从 boot.sy 读取(如果由 sy.php 控制器加载),否则通过 AJAX 获取
211const bootSy = boot.sy || {}
212
213const info = ref({
214 os: bootSy.os || '-',
215 hostname: bootSy.hostname || '-',
216 phpVersion: bootSy.php_version || '-',
217 phpSapi: bootSy.php_sapi || '-',
218 serverSoft: bootSy.server_soft || '-',
219 serverIp: bootSy.server_ip || '-',
220 serverPort: bootSy.server_port || '-',
221 serverTime: bootSy.server_time || '-',
222 timezone: bootSy.timezone || '-',
223 memoryLimit: bootSy.memory_limit || '-',
224 maxExecTime: bootSy.max_exec_time || '-',
225 uploadMax: bootSy.upload_max || '-',
226 postMax: bootSy.post_max || '-',
227 extCount: bootSy.ext_count || 0,
228 diskTotal: bootSy.disk_total || 0,
229 diskFree: bootSy.disk_free || 0,
230 diskUsed: bootSy.disk_used || 0,
231 diskPct: bootSy.disk_pct || 0,
232 memCurrent: bootSy.mem_current || 0,
233 memPeak: bootSy.mem_peak || 0,
234 loadAvg: bootSy.load_avg || null,
235 dbVersion: bootSy.db_version || '-',
236 webVersion: bootSy.web_version || '-',
237 sqlVersion: bootSy.sql_version || '-',
238})
239
240const hosts = ref(bootSy.hosts || 0)
241const btPanels = ref(bootSy.bt_panels || 0)
242const nodes = ref(bootSy.nodes || 0)
243const orders = ref(bootSy.orders || 0)
244
245const updateIcon = ref('mdi-bookmark-check')
246const updateText = ref('最新版本')
247const updateTagTheme = ref('success')
248
249const nowTime = ref('')
250let timer = null
251
252const greeting = computed(() => {
253 const h = new Date().getHours()
254 if (h < 6) return '凌晨好'
255 if (h < 9) return '早上好'
256 if (h < 12) return '上午好'
257 if (h < 14) return '中午好'
258 if (h < 18) return '下午好'
259 return '晚上好'
260})
261
262const statCards = computed(() => [
263 {
264 label: '主机数量',
265 value: hosts.value,
266 icon: 'mdi-laptop',
267 color: '#0052d9',
268 bg: '#e8f3ff',
269 footIcon: 'mdi-server',
270 foot: '已对接主机',
271 },
272 {
273 label: '宝塔面板',
274 value: btPanels.value,
275 icon: 'mdi-server',
276 color: '#2ba471',
277 bg: '#e8f8f0',
278 footIcon: 'mdi-shield-check',
279 foot: '通信正常',
280 },
281 {
282 label: '节点数量',
283 value: nodes.value,
284 icon: 'mdi-router-wireless',
285 color: '#e37318',
286 bg: '#fff3e0',
287 footIcon: 'mdi-account-multiple',
288 foot: '在线节点',
289 },
290 {
291 label: '订单总数',
292 value: orders.value,
293 icon: 'mdi-cart',
294 color: '#d54941',
295 bg: '#fdecee',
296 footIcon: 'mdi-clock-outline',
297 foot: '历史累计',
298 },
299])
300
301const memPct = computed(() => {
302 if (!info.value.memPeak) return 0
303 return Math.min(100, Math.round((info.value.memCurrent / info.value.memPeak) * 100))
304})
305
306/* echarts gauge 实例 */
307const diskGaugeRef = ref(null)
308const cpuGaugeRef = ref(null)
309const memGaugeRef = ref(null)
310let diskChart = null
311let cpuChart = null
312let memChart = null
313
314function buildGaugeOption(value, opts = {}) {
315 const {
316 color = '#0052d9',
317 max = 100,
318 unit = '%',
319 formatter = null,
320 } = opts
321 let theme = '#2ba471'
322 if (value > 80) theme = '#d54941'
323 else if (value > 60) theme = '#e37318'
324 return {
325 series: [
326 {
327 type: 'gauge',
328 startAngle: 210,
329 endAngle: -30,
330 min: 0,
331 max,
332 progress: {
333 show: true,
334 width: 12,
335 roundCap: true,
336 itemStyle: {
337 color: theme,
338 },
339 },
340 axisLine: {
341 lineStyle: {
342 width: 12,
343 color: [[1, '#ebedf0']],
344 },
345 },
346 pointer: { show: false },
347 axisTick: { show: false },
348 splitLine: { show: false },
349 axisLabel: { show: false },
350 anchor: { show: false },
351 title: { show: false },
352 detail: {
353 valueAnimation: true,
354 fontSize: 24,
355 fontWeight: 700,
356 color: theme,
357 offsetCenter: [0, '0%'],
358 formatter: formatter || `{value}${unit}`,
359 },
360 data: [{ value }],
361 color,
362 },
363 ],
364 }
365}
366
367function renderGauges() {
368 if (diskGaugeRef.value) {
369 if (!diskChart) diskChart = echarts.init(diskGaugeRef.value)
370 diskChart.setOption(buildGaugeOption(info.value.diskPct || 0, { color: '#0052d9' }))
371 }
372 if (cpuGaugeRef.value) {
373 if (!cpuChart) cpuChart = echarts.init(cpuGaugeRef.value)
374 const cpuPct = info.value.loadAvg ? Math.min(100, Math.round((info.value.loadAvg[0] || 0) * 100)) : 0
375 cpuChart.setOption(buildGaugeOption(cpuPct, { color: '#e37318' }))
376 }
377 if (memGaugeRef.value) {
378 if (!memChart) memChart = echarts.init(memGaugeRef.value)
379 memChart.setOption(buildGaugeOption(memPct.value, { color: '#2ba471' }))
380 }
381}
382
383function resizeGauges() {
384 diskChart?.resize()
385 cpuChart?.resize()
386 memChart?.resize()
387}
388
389function fmtBytes(bytes) {
390 if (!bytes || bytes <= 0) return '0 B'
391 const units = ['B', 'KB', 'MB', 'GB', 'TB']
392 const pow = Math.min(Math.floor(Math.log(bytes) / Math.log(1024)), units.length - 1)
393 return (bytes / Math.pow(1024, pow)).toFixed(2) + ' ' + units[pow]
394}
395
396function fmtLoad(i) {
397 if (!info.value.loadAvg) return '0.00'
398 return Number(info.value.loadAvg[i] || 0).toFixed(2)
399}
400
401function tickTime() {
402 nowTime.value = new Date().toLocaleString('zh-CN', { hour12: false })
403}
404
405async function loadDashboard() {
406 tickTime()
407 timer = setInterval(tickTime, 1000)
408
409 // 系统信息:如果 boot.sy 没有数据,则通过 AJAX 获取
410 if (!boot.sy) {
411 const syRes = await systemInfo()
412 if (syRes.ok && syRes.data) {
413 const d = syRes.data
414 info.value = {
415 os: d.os || '-',
416 hostname: d.hostname || '-',
417 phpVersion: d.php_version || '-',
418 phpSapi: d.php_sapi || '-',
419 serverSoft: d.server_soft || '-',
420 serverIp: d.server_ip || '-',
421 serverPort: d.server_port || '-',
422 serverTime: d.server_time || '-',
423 timezone: d.timezone || '-',
424 memoryLimit: d.memory_limit || '-',
425 maxExecTime: d.max_exec_time || '-',
426 uploadMax: d.upload_max || '-',
427 postMax: d.post_max || '-',
428 extCount: d.ext_count || 0,
429 diskTotal: d.disk_total || 0,
430 diskFree: d.disk_free || 0,
431 diskUsed: d.disk_used || 0,
432 diskPct: d.disk_pct || 0,
433 memCurrent: d.mem_current || 0,
434 memPeak: d.mem_peak || 0,
435 loadAvg: d.load_avg || null,
436 dbVersion: d.db_version || '-',
437 webVersion: d.web_version || '-',
438 sqlVersion: d.sql_version || '-',
439 }
440 hosts.value = d.hosts || 0
441 btPanels.value = d.bt_panels || 0
442 nodes.value = d.nodes || 0
443 orders.value = d.orders || 0
444 }
445 }
446
447 // 版本与更新提示 (gn=mnbt 返回 cl/gx/vs)
448 const res = await checkUpdate()
449 if (res.ok && res.data) {
450 const d = res.data
451 if (d.cl) updateIcon.value = d.cl
452 if (d.vs) updateText.value = d.vs
453 if (d.gx) {
454 if (d.gx.includes('最新')) {
455 updateText.value = '已是最新'
456 updateTagTheme.value = 'success'
457 } else if (d.gx.includes('新版本')) {
458 updateText.value = '有新版本'
459 updateTagTheme.value = 'warning'
460 } else if (d.gx.includes('离线')) {
461 updateText.value = '离线模式'
462 updateTagTheme.value = 'default'
463 }
464 }
465 }
466
467 // 渲染 gauge
468 await nextTick()
469 renderGauges()
470}
471
472onMounted(() => {
473 loadDashboard()
474 window.addEventListener('resize', resizeGauges)
475})
476
477onBeforeUnmount(() => {
478 if (timer) clearInterval(timer)
479 window.removeEventListener('resize', resizeGauges)
480 diskChart?.dispose()
481 cpuChart?.dispose()
482 memChart?.dispose()
483})
484</script>
485
486<style scoped>
487.td-dashboard {
488 padding: 20px;
489}
490
491/* ============== 顶部横幅广告 ============== */
492.ad-banner {
493 position: relative;
494 border-radius: var(--td-radius-xl);
495 overflow: hidden;
496 margin-bottom: 18px;
497 border: 1px solid var(--td-border);
498 box-shadow: var(--td-shadow-sm);
499 animation: td-fade-in var(--td-dur-lg) var(--td-ease-out);
500}
501.ad-link {
502 display: block;
503}
504.ad-img {
505 display: block;
506 width: 100%;
507 height: auto;
508}
509.ad-close {
510 position: absolute;
511 top: 10px;
512 right: 10px;
513 width: 28px;
514 height: 28px;
515 border-radius: 50%;
516 border: none;
517 background: rgba(0, 0, 0, 0.35);
518 color: #fff;
519 cursor: pointer;
520 display: grid;
521 place-items: center;
522 font-size: 15px;
523 transition: background 0.2s;
524}
525.ad-close:hover {
526 background: rgba(0, 0, 0, 0.55);
527}
528
529/* ============== 欢迎区 ============== */
530.hero {
531 display: flex;
532 align-items: center;
533 justify-content: space-between;
534 gap: 16px;
535 padding: 22px 24px;
536 margin-bottom: 18px;
537 background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
538 border: 1px solid var(--td-border);
539 border-radius: var(--td-radius-xl);
540 box-shadow: var(--td-shadow-sm);
541 flex-wrap: wrap;
542 animation: td-fade-in var(--td-dur-lg) var(--td-ease-out);
543}
544.hero-left {
545 min-width: 0;
546 flex: 1;
547}
548.hero-title {
549 margin: 0;
550 font-size: 22px;
551 font-weight: 700;
552 color: var(--td-text);
553 letter-spacing: 0.3px;
554 line-height: 1.3;
555}
556.hero-sub {
557 margin: 6px 0 0;
558 font-size: 13px;
559 color: var(--td-text-secondary);
560}
561.hero-time {
562 color: var(--td-text-placeholder);
563 font-variant-numeric: tabular-nums;
564}
565.hero-right {
566 display: flex;
567 align-items: center;
568 gap: 10px;
569 flex-wrap: wrap;
570}
571
572/* ============== 统计卡片 ============== */
573.stat-row {
574 display: grid;
575 grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
576 gap: 14px;
577 margin-bottom: 22px;
578}
579.stat-card {
580 background: var(--td-surface);
581 border: 1px solid var(--td-border);
582 border-radius: var(--td-radius-lg);
583 padding: 18px 20px;
584 display: flex;
585 align-items: center;
586 justify-content: space-between;
587 gap: 14px;
588 box-shadow: var(--td-shadow-sm);
589 transition: transform var(--td-dur) var(--td-ease),
590 box-shadow var(--td-dur) var(--td-ease),
591 border-color var(--td-dur) var(--td-ease);
592 animation: td-fade-in var(--td-dur-lg) var(--td-ease-out);
593}
594.stat-card:hover {
595 transform: translateY(-2px);
596 box-shadow: var(--td-shadow-md);
597 border-color: transparent;
598}
599.stat-card-body {
600 flex: 1;
601 min-width: 0;
602}
603.stat-label {
604 font-size: 12px;
605 color: var(--td-text-secondary);
606 margin-bottom: 4px;
607 letter-spacing: 0.3px;
608}
609.stat-num {
610 font-size: 28px;
611 font-weight: 700;
612 line-height: 1.1;
613 font-variant-numeric: tabular-nums;
614 letter-spacing: -0.5px;
615}
616.stat-foot {
617 font-size: 11px;
618 color: var(--td-text-placeholder);
619 margin-top: 6px;
620 display: flex;
621 align-items: center;
622 gap: 4px;
623}
624.stat-card-icon {
625 width: 48px;
626 height: 48px;
627 border-radius: 12px;
628 display: grid;
629 place-items: center;
630 font-size: 22px;
631 flex-shrink: 0;
632}
633
634/* ============== Section ============== */
635.section {
636 margin-top: 22px;
637}
638.section-title {
639 display: flex;
640 align-items: center;
641 gap: 8px;
642 font-size: 15px;
643 font-weight: 600;
644 margin: 0 0 14px 0;
645 color: var(--td-text);
646 letter-spacing: 0.2px;
647}
648.section-title i {
649 font-size: 18px;
650 color: var(--td-brand);
651}
652
653/* ============== Gauge ============== */
654.gauge-grid {
655 display: grid;
656 grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
657 gap: 14px;
658}
659.gauge-card {
660 background: var(--td-surface);
661 border: 1px solid var(--td-border);
662 border-radius: var(--td-radius-lg);
663 box-shadow: var(--td-shadow-sm);
664 overflow: hidden;
665 transition: box-shadow var(--td-dur) var(--td-ease);
666}
667.gauge-card:hover {
668 box-shadow: var(--td-shadow-md);
669}
670.gauge-head {
671 display: flex;
672 align-items: center;
673 justify-content: space-between;
674 gap: 8px;
675 padding: 14px 16px 0;
676}
677.gauge-title {
678 display: flex;
679 align-items: center;
680 gap: 6px;
681 font-size: 13px;
682 font-weight: 600;
683 color: var(--td-text);
684}
685.gauge-title i {
686 font-size: 16px;
687 color: var(--td-brand);
688}
689.gauge-body {
690 width: 100%;
691 height: 180px;
692}
693.gauge-foot {
694 padding: 0 16px 14px;
695 font-size: 11px;
696 color: var(--td-text-placeholder);
697 text-align: center;
698}
699
700/* ============== 系统信息卡片 ============== */
701.info-grid {
702 display: grid;
703 grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
704 gap: 14px;
705}
706.info-grid-2 {
707 grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
708}
709.info-card {
710 background: var(--td-surface);
711 border: 1px solid var(--td-border);
712 border-radius: var(--td-radius-lg);
713 box-shadow: var(--td-shadow-sm);
714 overflow: hidden;
715 transition: box-shadow var(--td-dur) var(--td-ease);
716}
717.info-card:hover {
718 box-shadow: var(--td-shadow-md);
719}
720.info-card-head {
721 padding: 14px 16px;
722 border-bottom: 1px solid var(--td-border);
723 display: flex;
724 align-items: center;
725 gap: 10px;
726}
727.info-card-icon {
728 width: 36px;
729 height: 36px;
730 border-radius: 8px;
731 display: grid;
732 place-items: center;
733 font-size: 18px;
734 flex-shrink: 0;
735}
736.info-card-icon-blue { background: #e8f3ff; color: #0052d9; }
737.info-card-icon-purple { background: #f3e8ff; color: #7c3aed; }
738.info-card-icon-green { background: #e8f8f0; color: #2ba471; }
739.info-card-icon-orange { background: #fff3e0; color: #e37318; }
740.info-card-icon-cyan { background: #e0f7fa; color: #0891b2; }
741.info-card-name {
742 flex: 1;
743 min-width: 0;
744 display: flex;
745 flex-direction: column;
746}
747.info-card-name strong {
748 font-size: 14px;
749 font-weight: 600;
750 color: var(--td-text);
751}
752.info-card-name span {
753 font-size: 11px;
754 color: var(--td-text-placeholder);
755 margin-top: 1px;
756}
757.info-card-body {
758 padding: 14px 16px;
759 font-size: 13px;
760 line-height: 1.7;
761 color: var(--td-text);
762}
763.info-tbl {
764 width: 100%;
765 border-collapse: collapse;
766}
767.info-tbl td {
768 padding: 8px 16px;
769 font-size: 13px;
770 border-bottom: 1px solid #f5f6f8;
771}
772.info-tbl tr:last-child td {
773 border-bottom: none;
774}
775.info-tbl td:first-child {
776 color: var(--td-text-secondary);
777 white-space: nowrap;
778 width: 110px;
779}
780.info-tbl td:last-child {
781 color: var(--td-text);
782 word-break: break-all;
783}
784
785@media (max-width: 600px) {
786 .td-dashboard { padding: 14px; }
787 .hero { padding: 16px; }
788 .hero-title { font-size: 18px; }
789 .stat-card { padding: 14px; }
790 .stat-num { font-size: 22px; }
791 .stat-card-icon { width: 40px; height: 40px; font-size: 18px; }
792}
793</style>