import 'package:flutter/material.dart';

/// 应用颜色常量
class AppColors {
  AppColors._();

  // 主题色
  static const Color primary = Color(0xFF00D4AA);
  static const Color primaryLight = Color(0xFF00E6B8);
  static const Color primaryDark = Color(0xFF00B894);

  // 状态色
  static const Color success = Color(0xFF00C853);
  static const Color warning = Color(0xFFFF9800);
  static const Color error = Color(0xFFFF5252);
  static const Color info = Color(0xFF2196F3);

  // 涨跌色
  static const Color up = Color(0xFF00C853);
  static const Color down = Color(0xFFFF5252);

  // 深色主题背景
  static const Color background = Color(0xFF1A1A2E);
  static const Color cardBackground = Color(0xFF16213E);
  static const Color scaffoldBackground = Color(0xFF1A1A2E);

  // 文字颜色
  static const Color textPrimary = Colors.white;
  static const Color textSecondary = Color(0x99FFFFFF);
  static const Color textHint = Color(0x4DFFFFFF);
  static const Color textDisabled = Color(0x33FFFFFF);

  // 边框和分割线
  static const Color border = Color(0x1AFFFFFF);
  static const Color divider = Color(0x1AFFFFFF);

  // 输入框
  static const Color inputBackground = Color(0xFF16213E);
  static const Color inputBorder = Color(0x33FFFFFF);
  static const Color inputFocusBorder = Color(0xFF00D4AA);

  // 按钮渐变
  static const LinearGradient primaryGradient = LinearGradient(
    colors: [primary, primaryDark],
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
  );

  // 买入按钮渐变
  static const LinearGradient buyGradient = LinearGradient(
    colors: [Color(0xFF00C853), Color(0xFF00A844)],
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
  );

  // 卖出按钮渐变
  static const LinearGradient sellGradient = LinearGradient(
    colors: [Color(0xFFFF5252), Color(0xFFD32F2F)],
    begin: Alignment.topLeft,
    end: Alignment.bottomRight,
  );
}
