import { globalConfig } from "@/config";

// 主题颜色配置
export interface ThemeColors {
  primary: string;
  primaryLight: string;
  primaryDark: string;
  gradient: string;
  shadow: string;
}

export const themeColors: Record<number, ThemeColors> = {
  1: {
    primary: globalConfig.primary_color,
    primaryLight: globalConfig.primary_color,
    primaryDark: globalConfig.primary_color,
    gradient: `linear-gradient(135deg, ${globalConfig.primary_color} 0%, ${globalConfig.primary_color} 100%)`,
    shadow: 'rgba(0, 65, 142, 0.35)',
  },
  6: {
    primary: globalConfig.primary_color,
    primaryLight: globalConfig.primary_color,
    primaryDark: globalConfig.primary_color,
    gradient: `linear-gradient(135deg, ${globalConfig.primary_color} 0%, ${globalConfig.primary_color} 100%)`,
    shadow: 'rgba(0, 65, 142, 0.35)',
  },
  7: {
    primary: globalConfig.primary_color,
    primaryLight: globalConfig.primary_color,
    primaryDark: globalConfig.primary_color,
    gradient: `linear-gradient(135deg, ${globalConfig.primary_color} 0%, ${globalConfig.primary_color} 100%)`,
    shadow: 'rgba(0, 65, 142, 0.35)',
  },
  8: {
    primary: globalConfig.primary_color,
    primaryLight: globalConfig.primary_color,
    primaryDark: globalConfig.primary_color,
    gradient: `linear-gradient(135deg, ${globalConfig.primary_color} 0%, #0073e6 100%)`,
    shadow: 'rgba(0, 65, 142, 0.35)',
  },
};

// 获取主题颜色
export function getThemeColors(themeId: number): ThemeColors {
  return themeColors[themeId] || themeColors[1];
}
