import type { MetricBasis } from './metrics-basis'; export interface CaseMetric { value: string; label: string; highlight?: boolean; /** * 佐证口径(2026-10-16 新增)。原本这个类型**没有 basis 字段** —— * 而仓库早有 metrics-basis 契约(target / team-history / verified + MetricsBasisNote), * 案例指标却是全站最容易被当成"已发生事实"的数字,缺这一维等于开了个编造的后门。 * ResultsSlot 的 ready 态要求**至少一个指标 basis === 'verified'**,靠的就是这里。 */ basis?: MetricBasis; } export interface CaseTimelinePhase { phase: string; duration: string; description: string; } export interface CaseService { id: string; title: string; description: string; } export interface CaseTestimonial { quote: string; author: string; role: string; company: string; } export interface CaseStudy { id: string; slug: string; client: string; industry: string; companySize: string; title: string; subtitle: string; challenge: string; solution: string; result: string; metrics: CaseMetric[]; timeline: CaseTimelinePhase[]; services: CaseService[]; testimonial?: CaseTestimonial; color: 'brand' | 'blue' | 'teal' | 'amber' | 'purple'; featured?: boolean; projectDuration?: string; departments?: string[]; dataScale?: string; businessProblem?: string; verified?: boolean; } export const CASE_INDUSTRIES = [ { id: 'all', label: '全部行业' }, { id: '制造业', label: '制造业' }, { id: '贸易零售', label: '贸易零售' }, { id: '医疗健康', label: '医疗健康' }, { id: '教育培训', label: '教育培训' }, { id: '金融服务', label: '金融服务' }, { id: '物流运输', label: '物流运输' }, ];