2026-04-19 14:18:20 +08:00
|
|
|
|
<script setup lang="ts">
|
2026-04-20 15:40:18 +08:00
|
|
|
|
import {
|
|
|
|
|
|
ArrowRightOutlined,
|
|
|
|
|
|
DeleteOutlined,
|
|
|
|
|
|
LinkOutlined,
|
|
|
|
|
|
ReloadOutlined,
|
|
|
|
|
|
WarningOutlined,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
} from '@ant-design/icons-vue'
|
|
|
|
|
|
import { notification } from 'ant-design-vue'
|
|
|
|
|
|
import { computed, ref } from 'vue'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
import { useDesktopRuntime } from '../composables/useDesktopRuntime'
|
|
|
|
|
|
import { showClientActionError } from '../lib/client-errors'
|
|
|
|
|
|
import { formatDateTime, formatRelativeTime, formatVerifiedAtLabel } from '../lib/formatters'
|
|
|
|
|
|
import { desktopMonitoringMediaCatalog } from '../lib/media-catalog'
|
|
|
|
|
|
import type { RuntimeAccount } from '../types'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
type AccountRow = Readonly<Omit<RuntimeAccount, 'tags'>> & { tags: readonly string[] }
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const { snapshot, refresh, refreshAccounts, loading } = useDesktopRuntime()
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const bindPendingPlatformId = ref<string | null>(null)
|
|
|
|
|
|
const openPendingAccountId = ref<string | null>(null)
|
|
|
|
|
|
const unbindPendingAccountId = ref<string | null>(null)
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
|
|
const aiAccounts = computed(() =>
|
|
|
|
|
|
(snapshot.value?.accounts ?? []).filter((account) =>
|
|
|
|
|
|
desktopMonitoringMediaCatalog.some((platform) => platform.id === account.platform),
|
|
|
|
|
|
),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
)
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
|
|
|
|
|
const overview = computed(() => ({
|
2026-04-20 15:40:18 +08:00
|
|
|
|
configuredPlatforms: desktopMonitoringMediaCatalog.length,
|
2026-04-19 14:18:20 +08:00
|
|
|
|
bound: aiAccounts.value.length,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
live: aiAccounts.value.filter((item) => item.health === 'live').length,
|
2026-04-20 15:40:18 +08:00
|
|
|
|
onlineClients: snapshot.value?.summary.onlineClients ?? 0,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
}))
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
const platformCards = computed(() =>
|
|
|
|
|
|
desktopMonitoringMediaCatalog.map((platform) => {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const matched = aiAccounts.value.filter((account) => account.platform === platform.id)
|
2026-04-20 15:40:18 +08:00
|
|
|
|
return {
|
|
|
|
|
|
...platform,
|
|
|
|
|
|
account: matched[0] ?? null,
|
|
|
|
|
|
duplicateCount: Math.max(0, matched.length - 1),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
}
|
2026-04-20 15:40:18 +08:00
|
|
|
|
}),
|
2026-05-01 20:39:09 +08:00
|
|
|
|
)
|
2026-04-20 15:40:18 +08:00
|
|
|
|
|
2026-04-19 14:18:20 +08:00
|
|
|
|
function authLabel(account: AccountRow | null) {
|
|
|
|
|
|
if (!account) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return '未绑定'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 17:16:15 +08:00
|
|
|
|
switch (account.authState) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
case 'active':
|
|
|
|
|
|
return '授权正常'
|
|
|
|
|
|
case 'challenge_required':
|
|
|
|
|
|
return account.authReason === 'risk_control' ? '触发风控' : '需人工验证'
|
|
|
|
|
|
case 'expired':
|
|
|
|
|
|
return '授权过期'
|
|
|
|
|
|
case 'expiring_soon':
|
|
|
|
|
|
return account.probeState === 'network_error' ? '最近校验失败' : '待重新校验'
|
|
|
|
|
|
case 'revoked':
|
|
|
|
|
|
return '已停用'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
default:
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return account.probeState === 'queued'
|
|
|
|
|
|
? '等待校验'
|
|
|
|
|
|
: account.probeState === 'probing'
|
|
|
|
|
|
? '校验中'
|
|
|
|
|
|
: '待校验'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
function authColor(account: AccountRow | null) {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
if (!account) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return 'default'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 17:16:15 +08:00
|
|
|
|
switch (account.authState) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
case 'active':
|
|
|
|
|
|
return 'success'
|
|
|
|
|
|
case 'challenge_required':
|
|
|
|
|
|
return 'warning'
|
|
|
|
|
|
case 'expired':
|
|
|
|
|
|
case 'revoked':
|
|
|
|
|
|
return 'error'
|
|
|
|
|
|
case 'expiring_soon':
|
|
|
|
|
|
return account.probeState === 'network_error' ? 'warning' : 'default'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
default:
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return account.probeState === 'queued' || account.probeState === 'probing'
|
|
|
|
|
|
? 'processing'
|
|
|
|
|
|
: 'default'
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-23 15:26:24 +08:00
|
|
|
|
function accountActionAlert(account: AccountRow | null): string | null {
|
2026-04-29 17:12:20 +08:00
|
|
|
|
if (!account) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return null
|
2026-04-29 17:12:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
if (account.authState === 'expired') {
|
|
|
|
|
|
return '当前账号授权已过期,相关任务会暂停执行。请点击“重新授权”完成登录后再继续。'
|
2026-04-29 17:12:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
if (account.authState !== 'challenge_required') {
|
|
|
|
|
|
return null
|
2026-04-23 15:26:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
if (account.authReason === 'risk_control' && account.platform === 'doubao') {
|
|
|
|
|
|
return '豆包账号疑似触发风控,监控已暂停。请点击“打开平台”,在前台完成验证或等待限制解除后,再刷新状态。'
|
2026-04-23 15:26:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
if (account.authReason === 'risk_control') {
|
|
|
|
|
|
return '当前账号疑似触发平台限制,相关任务已暂停。请先打开平台处理验证后,再刷新状态。'
|
2026-04-23 15:26:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return '当前账号需要人工验证,相关任务会暂停执行。请先打开平台完成验证后,再刷新状态。'
|
2026-04-23 15:26:24 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 17:16:15 +08:00
|
|
|
|
function verificationLabel(account: AccountRow): string {
|
2026-04-29 17:12:20 +08:00
|
|
|
|
switch (account.authState) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
case 'expired':
|
|
|
|
|
|
return '需要重新授权'
|
|
|
|
|
|
case 'revoked':
|
|
|
|
|
|
return '已停用'
|
|
|
|
|
|
case 'challenge_required':
|
|
|
|
|
|
return account.authReason === 'risk_control' ? '触发风控,需处理' : '需要人工验证'
|
2026-04-29 17:12:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 17:16:15 +08:00
|
|
|
|
if (account.lastVerifiedAt) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return formatVerifiedAtLabel(account.lastVerifiedAt)
|
2026-04-20 17:16:15 +08:00
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
if (account.probeState === 'queued') {
|
|
|
|
|
|
return '等待首轮校验'
|
2026-04-27 21:33:55 +08:00
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
if (account.probeState === 'probing') {
|
|
|
|
|
|
return '正在执行首轮校验'
|
2026-04-20 17:16:15 +08:00
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return '尚未完成校验'
|
2026-04-20 17:16:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function nextProbeLabel(account: AccountRow): string {
|
|
|
|
|
|
if (!account.nextProbeAt) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return '未排程'
|
2026-04-20 17:16:15 +08:00
|
|
|
|
}
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return formatRelativeTime(account.nextProbeAt)
|
2026-04-20 17:16:15 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
function sessionLabel(account: AccountRow): string {
|
2026-04-20 09:52:48 +08:00
|
|
|
|
switch (account.sessionState) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
case 'hot':
|
|
|
|
|
|
return '活跃会话'
|
|
|
|
|
|
case 'warm':
|
|
|
|
|
|
return '已缓存'
|
2026-04-20 09:52:48 +08:00
|
|
|
|
default:
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return '冷启动'
|
2026-04-20 15:40:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-29 17:12:20 +08:00
|
|
|
|
function isReauthorizePending(account: AccountRow): boolean {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return bindPendingPlatformId.value === account.platform
|
2026-04-29 17:12:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
function onlineLabel(account: AccountRow): string {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
return account.online ? '客户端在线' : '客户端离线'
|
2026-04-20 15:40:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-05-01 20:39:09 +08:00
|
|
|
|
function showActionNotification(type: 'success' | 'info', title: string, description: string) {
|
2026-04-20 15:40:18 +08:00
|
|
|
|
notification[type]({
|
|
|
|
|
|
message: title,
|
|
|
|
|
|
description,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
placement: 'topRight',
|
2026-04-20 15:40:18 +08:00
|
|
|
|
duration: 3.2,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
})
|
2026-04-20 15:40:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function bindPlatform(platformId: string) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
bindPendingPlatformId.value = platformId
|
2026-04-20 15:40:18 +08:00
|
|
|
|
|
|
|
|
|
|
try {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
const account = await window.desktopBridge.app.bindPublishAccount(platformId)
|
|
|
|
|
|
const platformLabel =
|
|
|
|
|
|
desktopMonitoringMediaCatalog.find((item) => item.id === platformId)?.label ?? platformId
|
|
|
|
|
|
showActionNotification(
|
|
|
|
|
|
'success',
|
|
|
|
|
|
'绑定成功',
|
|
|
|
|
|
`${account.display_name} 已绑定到 ${platformLabel}`,
|
|
|
|
|
|
)
|
|
|
|
|
|
await refresh()
|
2026-04-20 15:40:18 +08:00
|
|
|
|
} catch (error) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
showClientActionError('bind-account', error)
|
2026-04-20 15:40:18 +08:00
|
|
|
|
} finally {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
bindPendingPlatformId.value = null
|
2026-04-20 15:40:18 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async function openPlatform(account: AccountRow) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
openPendingAccountId.value = account.id
|
2026-04-20 15:40:18 +08:00
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
await window.desktopBridge.app.openPublishAccountConsole({
|
|
|
|
|
|
id: account.id,
|
|
|
|
|
|
platform: account.platform,
|
|
|
|
|
|
platformUid: account.platformUid,
|
|
|
|
|
|
displayName: account.displayName,
|
2026-05-01 20:39:09 +08:00
|
|
|
|
})
|
2026-04-20 15:40:18 +08:00
|
|
|
|
} catch (error) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
showClientActionError('open-console', error)
|
2026-04-20 15:40:18 +08:00
|
|
|
|
} finally {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
openPendingAccountId.value = null
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
async function unbindPlatform(account: AccountRow) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
unbindPendingAccountId.value = account.id
|
2026-04-20 15:40:18 +08:00
|
|
|
|
|
|
|
|
|
|
try {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
await window.desktopBridge.app.unbindPublishAccount(account.id, account.syncVersion)
|
|
|
|
|
|
showActionNotification(
|
|
|
|
|
|
'info',
|
|
|
|
|
|
'解绑成功',
|
|
|
|
|
|
`${account.displayName} 已从 ${desktopMonitoringMediaCatalog.find((item) => item.id === account.platform)?.label ?? account.platform} 移除`,
|
|
|
|
|
|
)
|
|
|
|
|
|
await refreshAccounts()
|
2026-04-20 15:40:18 +08:00
|
|
|
|
} catch (error) {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
showClientActionError('unbind-account', error)
|
2026-04-20 15:40:18 +08:00
|
|
|
|
} finally {
|
2026-05-01 20:39:09 +08:00
|
|
|
|
unbindPendingAccountId.value = null
|
2026-04-20 15:40:18 +08:00
|
|
|
|
}
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<template>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<section class="page-container">
|
|
|
|
|
|
<section class="hero-card">
|
|
|
|
|
|
<div class="hero-header">
|
|
|
|
|
|
<div class="hero-title">
|
|
|
|
|
|
<p class="eyebrow">AI PLATFORMS</p>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
<h2>AI 平台管理</h2>
|
|
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="hero-actions">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<a-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
ghost
|
|
|
|
|
|
class="modern-btn"
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
@click="refreshAccounts"
|
|
|
|
|
|
>
|
2026-04-20 09:52:48 +08:00
|
|
|
|
<template #icon><ReloadOutlined /></template>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
刷新状态
|
2026-04-20 09:52:48 +08:00
|
|
|
|
</a-button>
|
|
|
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
|
|
|
|
|
|
<div class="stats-strip">
|
|
|
|
|
|
<div class="stat-card">
|
|
|
|
|
|
<div class="stat-label">支持平台</div>
|
|
|
|
|
|
<div class="stat-value">{{ overview.configuredPlatforms }}</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="stat-card">
|
|
|
|
|
|
<div class="stat-label">已绑定</div>
|
|
|
|
|
|
<div class="stat-value">{{ overview.bound }}</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="stat-card">
|
|
|
|
|
|
<div class="stat-label">授权正常</div>
|
|
|
|
|
|
<div class="stat-value">{{ overview.live }}</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="stat-card">
|
|
|
|
|
|
<div class="stat-label">在线客户端</div>
|
|
|
|
|
|
<div class="stat-value">{{ overview.onlineClients }}</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<section class="content-section">
|
|
|
|
|
|
<div class="section-header">
|
|
|
|
|
|
<h3 class="section-title">支持的大模型</h3>
|
|
|
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="grid-layout">
|
|
|
|
|
|
<article
|
|
|
|
|
|
v-for="platform in platformCards"
|
|
|
|
|
|
:key="platform.id"
|
|
|
|
|
|
class="modern-card"
|
|
|
|
|
|
:class="platform.account ? 'is-bound' : 'is-unbound'"
|
|
|
|
|
|
>
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
|
<div class="brand-info">
|
|
|
|
|
|
<div
|
|
|
|
|
|
class="brand-logo"
|
2026-05-01 20:39:09 +08:00
|
|
|
|
:style="{
|
|
|
|
|
|
backgroundColor: `${platform.accent}14`,
|
|
|
|
|
|
color: platform.accent,
|
|
|
|
|
|
border: `1px solid ${platform.accent}24`,
|
|
|
|
|
|
}"
|
2026-04-20 15:40:18 +08:00
|
|
|
|
>
|
|
|
|
|
|
{{ platform.shortName }}
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="brand-text">
|
|
|
|
|
|
<h4>{{ platform.label }}</h4>
|
|
|
|
|
|
<p>{{ platform.description }}</p>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<a-tag :color="authColor(platform.account)" class="status-tag">
|
|
|
|
|
|
{{ authLabel(platform.account) }}
|
|
|
|
|
|
</a-tag>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="platform.account" class="card-body">
|
|
|
|
|
|
<div class="info-list">
|
|
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
<span class="info-label">当前账号</span>
|
|
|
|
|
|
<span class="info-value primary-text">{{ platform.account.displayName }}</span>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
<span class="info-label">平台 UID</span>
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<span class="info-value mono-text" :title="platform.account.platformUid">
|
|
|
|
|
|
{{ platform.account.platformUid }}
|
|
|
|
|
|
</span>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
<span class="info-label">本地会话</span>
|
|
|
|
|
|
<span class="info-value">{{ sessionLabel(platform.account) }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
<span class="info-label">最近同步</span>
|
|
|
|
|
|
<span class="info-value">{{ formatDateTime(platform.account.lastSyncAt) }}</span>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 17:16:15 +08:00
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
<span class="info-label">校验状态</span>
|
|
|
|
|
|
<span class="info-value">{{ verificationLabel(platform.account) }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div class="info-row">
|
|
|
|
|
|
<span class="info-label">下次巡检</span>
|
|
|
|
|
|
<span class="info-value">{{ nextProbeLabel(platform.account) }}</span>
|
|
|
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div class="card-footer">
|
|
|
|
|
|
<div class="online-status">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<a-badge
|
|
|
|
|
|
:status="platform.account.online ? 'success' : 'default'"
|
|
|
|
|
|
:text="onlineLabel(platform.account)"
|
|
|
|
|
|
/>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="action-group">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<a-tooltip
|
|
|
|
|
|
v-if="platform.account.authState === 'expired'"
|
|
|
|
|
|
title="重新授权"
|
|
|
|
|
|
placement="top"
|
|
|
|
|
|
>
|
2026-04-29 17:12:20 +08:00
|
|
|
|
<a-button
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
class="action-btn"
|
|
|
|
|
|
:loading="isReauthorizePending(platform.account)"
|
|
|
|
|
|
@click="bindPlatform(platform.id)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #icon><ArrowRightOutlined /></template>
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
</a-tooltip>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<a-tooltip title="打开平台" placement="top">
|
|
|
|
|
|
<a-button
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
class="action-btn"
|
|
|
|
|
|
:loading="openPendingAccountId === platform.account.id"
|
|
|
|
|
|
@click="openPlatform(platform.account)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #icon><LinkOutlined /></template>
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
|
<a-popconfirm
|
|
|
|
|
|
title="确认解绑这个 AI 账号吗?"
|
|
|
|
|
|
ok-text="解绑"
|
|
|
|
|
|
cancel-text="取消"
|
|
|
|
|
|
@confirm="unbindPlatform(platform.account)"
|
|
|
|
|
|
>
|
|
|
|
|
|
<a-tooltip title="解绑" placement="top">
|
|
|
|
|
|
<a-button
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
class="action-btn danger-btn"
|
|
|
|
|
|
:loading="unbindPendingAccountId === platform.account.id"
|
|
|
|
|
|
>
|
|
|
|
|
|
<template #icon><DeleteOutlined /></template>
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
</a-tooltip>
|
|
|
|
|
|
</a-popconfirm>
|
|
|
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
</div>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div v-else class="card-empty-state">
|
|
|
|
|
|
<div class="empty-content">
|
|
|
|
|
|
<h5>当前未绑定账号</h5>
|
|
|
|
|
|
<p>首次授权会打开登录窗口;绑定完成后,后续监测统一在隐藏窗口里静默执行。</p>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<a-button
|
|
|
|
|
|
type="primary"
|
|
|
|
|
|
class="auth-btn"
|
|
|
|
|
|
:loading="bindPendingPlatformId === platform.id"
|
|
|
|
|
|
@click="bindPlatform(platform.id)"
|
|
|
|
|
|
>
|
|
|
|
|
|
立即授权
|
|
|
|
|
|
<template #icon><ArrowRightOutlined /></template>
|
|
|
|
|
|
</a-button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-04-23 15:26:24 +08:00
|
|
|
|
<div v-if="accountActionAlert(platform.account)" class="card-alert">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<a-alert type="warning" show-icon banner>
|
2026-04-23 15:26:24 +08:00
|
|
|
|
<template #message>
|
|
|
|
|
|
{{ accountActionAlert(platform.account) }}
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template #icon><WarningOutlined /></template>
|
|
|
|
|
|
</a-alert>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<div v-if="platform.duplicateCount > 0" class="card-alert">
|
2026-05-01 20:39:09 +08:00
|
|
|
|
<a-alert type="warning" show-icon banner>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
<template #message>
|
|
|
|
|
|
发现额外 {{ platform.duplicateCount }} 个同平台账号缓存,当前卡片只保留主账号展示。
|
|
|
|
|
|
</template>
|
|
|
|
|
|
<template #icon><WarningOutlined /></template>
|
|
|
|
|
|
</a-alert>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</article>
|
2026-04-19 14:18:20 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</section>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.page-container {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
gap: 32px;
|
|
|
|
|
|
padding-bottom: 40px;
|
|
|
|
|
|
max-width: 1400px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Hero Section */
|
|
|
|
|
|
.hero-card {
|
|
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
border: 1px solid #eef2f6;
|
2026-05-01 20:39:09 +08:00
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 4px 6px -1px rgba(0, 0, 0, 0.02),
|
|
|
|
|
|
0 2px 4px -2px rgba(0, 0, 0, 0.01);
|
2026-04-19 14:18:20 +08:00
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.hero-header {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: flex-start;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
padding: 36px 40px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.eyebrow {
|
|
|
|
|
|
margin: 0 0 12px;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
letter-spacing: 0.1em;
|
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.hero-title h2 {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
margin: 0;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
font-size: 32px;
|
|
|
|
|
|
font-weight: 800;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
letter-spacing: -0.02em;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.summary {
|
|
|
|
|
|
margin: 16px 0 0;
|
|
|
|
|
|
max-width: 800px;
|
|
|
|
|
|
color: #475569;
|
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
font-size: 15px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.modern-btn {
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
height: 40px;
|
|
|
|
|
|
padding: 0 20px;
|
|
|
|
|
|
font-weight: 600;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Stats Strip */
|
|
|
|
|
|
.stats-strip {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
padding: 24px 40px;
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
border-top: 1px solid #eef2f6;
|
|
|
|
|
|
gap: 40px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.stat-card {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
gap: 8px;
|
|
|
|
|
|
flex: 1;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.stat-label {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
color: #64748b;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.stat-value {
|
|
|
|
|
|
font-size: 40px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
line-height: 1;
|
2026-05-01 20:39:09 +08:00
|
|
|
|
font-feature-settings: 'tnum';
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Content Section Elements */
|
|
|
|
|
|
.content-section {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
gap: 24px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.section-header {
|
|
|
|
|
|
padding: 0 8px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.section-title {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 20px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
color: #0f172a;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.section-desc {
|
|
|
|
|
|
margin: 8px 0 0;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 15px;
|
|
|
|
|
|
line-height: 1.5;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.grid-layout {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: grid;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
|
|
|
|
|
gap: 24px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Modern Card Design */
|
|
|
|
|
|
.modern-card {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
background: #ffffff;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
border: 1px solid #e2e8f0;
|
|
|
|
|
|
padding: 28px;
|
|
|
|
|
|
min-height: 380px;
|
|
|
|
|
|
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.02);
|
|
|
|
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
|
|
|
position: relative;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.modern-card:hover {
|
|
|
|
|
|
transform: translateY(-4px);
|
2026-05-01 20:39:09 +08:00
|
|
|
|
box-shadow:
|
|
|
|
|
|
0 20px 25px -5px rgba(0, 0, 0, 0.05),
|
|
|
|
|
|
0 8px 10px -6px rgba(0, 0, 0, 0.01);
|
2026-04-20 15:40:18 +08:00
|
|
|
|
border-color: #cbd5e1;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Card Header */
|
|
|
|
|
|
.card-header {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
justify-content: space-between;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
align-items: flex-start;
|
|
|
|
|
|
margin-bottom: 32px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.brand-info {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
gap: 16px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.brand-logo {
|
|
|
|
|
|
width: 52px;
|
|
|
|
|
|
height: 52px;
|
|
|
|
|
|
display: flex;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: center;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
border-radius: 14px;
|
|
|
|
|
|
font-size: 22px;
|
|
|
|
|
|
font-weight: 700;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.brand-text h4 {
|
|
|
|
|
|
margin: 0;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
font-size: 18px;
|
|
|
|
|
|
font-weight: 700;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
color: #0f172a;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.brand-text p {
|
|
|
|
|
|
margin: 4px 0 0;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 14px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.status-tag {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
margin: 0;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
border-radius: 9999px;
|
|
|
|
|
|
padding: 4px 12px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
font-weight: 600;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
font-size: 13px;
|
|
|
|
|
|
border: 1px solid transparent; /* adjusted dynamically by Ant normally, but let's reset slightly */
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Card Body & Info List */
|
|
|
|
|
|
.card-body {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
flex: 1;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.info-list {
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
padding: 4px 0;
|
|
|
|
|
|
margin-bottom: 24px;
|
|
|
|
|
|
border: 1px solid #f1f5f9;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info-row {
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
padding: 12px 16px;
|
|
|
|
|
|
border-bottom: 1px solid #f1f5f9;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.info-row:last-child {
|
|
|
|
|
|
border-bottom: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info-label {
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.info-value {
|
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
|
color: #334155;
|
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
|
max-width: 200px;
|
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
|
|
text-align: right;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.primary-text {
|
|
|
|
|
|
color: #0f172a;
|
|
|
|
|
|
font-weight: 600;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.mono-text {
|
|
|
|
|
|
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
font-size: 13px;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
color: #475569;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
/* Card Footer */
|
|
|
|
|
|
.card-footer {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
margin-top: auto;
|
|
|
|
|
|
padding-top: 20px;
|
|
|
|
|
|
border-top: 1px dashed #e2e8f0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-group {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
gap: 8px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.action-btn {
|
|
|
|
|
|
width: 36px;
|
|
|
|
|
|
height: 36px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
|
border-radius: 8px;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
transition: all 0.2s ease;
|
|
|
|
|
|
border: 1px solid transparent;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.action-btn:hover {
|
|
|
|
|
|
background: #f1f5f9;
|
|
|
|
|
|
color: #0ea5e9;
|
|
|
|
|
|
border-color: #e2e8f0;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.danger-btn:hover {
|
|
|
|
|
|
background: #fef2f2;
|
|
|
|
|
|
color: #ef4444;
|
|
|
|
|
|
border-color: #fee2e2;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Empty State */
|
|
|
|
|
|
.card-empty-state {
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
flex-direction: column;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
justify-content: space-between;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
flex: 1;
|
|
|
|
|
|
background: #f8fafc;
|
|
|
|
|
|
border-radius: 16px;
|
|
|
|
|
|
padding: 24px;
|
|
|
|
|
|
border: 1px dashed #cbd5e1;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.empty-content h5 {
|
|
|
|
|
|
margin: 0;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
color: #0f172a;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.empty-content p {
|
|
|
|
|
|
margin: 12px 0 0;
|
|
|
|
|
|
color: #64748b;
|
|
|
|
|
|
line-height: 1.6;
|
|
|
|
|
|
font-size: 14px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
2026-04-20 15:40:18 +08:00
|
|
|
|
.auth-btn {
|
|
|
|
|
|
margin-top: 24px;
|
|
|
|
|
|
height: 44px;
|
|
|
|
|
|
border-radius: 10px;
|
|
|
|
|
|
font-weight: 600;
|
|
|
|
|
|
font-size: 15px;
|
2026-04-19 14:18:20 +08:00
|
|
|
|
display: flex;
|
|
|
|
|
|
align-items: center;
|
2026-04-20 15:40:18 +08:00
|
|
|
|
justify-content: center;
|
|
|
|
|
|
gap: 8px;
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.card-alert {
|
|
|
|
|
|
margin-top: 16px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
:deep(.card-alert .ant-alert) {
|
|
|
|
|
|
border-radius: 12px;
|
|
|
|
|
|
border: none;
|
|
|
|
|
|
background: #fffbeb;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Responsiveness */
|
|
|
|
|
|
@media (max-width: 1024px) {
|
|
|
|
|
|
.hero-header {
|
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
|
gap: 24px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.stats-strip {
|
|
|
|
|
|
flex-wrap: wrap;
|
|
|
|
|
|
gap: 24px;
|
|
|
|
|
|
}
|
2026-04-19 14:18:20 +08:00
|
|
|
|
}
|
|
|
|
|
|
</style>
|