// Theme.qml
pragma Singleton
import QtQuick

QtObject {
    // ===== 颜色定义 =====
    property color primary: "#6a5acd"
    property color primaryDark: "#4b0082"
    property color primaryLight: "#8a7aff"
    property color accent: "#ffcc00"
    property color textPrimary: "#e0e0ff"
    property color textSecondary: "#a0a0c0"
    property color textDanger: "#e53935"
    property color background: "#1a1a2e"
    property color cardBackground: "#252541"
    property color cardBackgroundLight: "#2a2a4a"
    property color cardBackgroundLighter: "#3a3a6a"
    property color cardBackgroundDark: "#1e1e3a"
    property color border: "#4a4a7a"
    property color borderLight: "#6a5acd"
    property color buttonPrimary: "#6a5acd"
    property color buttonPrimaryHover: Qt.darker(buttonPrimary, 1.2)
    property color buttonSecondary: "#3a3a6a"
    property color buttonSecondaryHover: "#4a4a8a"
    property color transparent: "transparent"
    property color shadowColor: "#40000000"

    // ===== 字体 =====
    property string fontFamily: "Microsoft YaHei"
    property int headingSize: 24
    property int titleSize: 18
    property int bodySize: 14
    property int captionSize: 12

    // ===== 间距 =====
    property int spacingSmall: 8
    property int spacingMedium: 16
    property int spacingLarge: 24

    // ===== 圆角 =====
    property int radiusSmall: 4
    property int radiusMedium: 8
    property int radiusLarge: 12

    // ===== 阴影 =====
    property var shadowSmall: [{"offset": 0, "blur": 2, "color": "#20000000"}]
    property var shadowMedium: [{"offset": 0, "blur": 6, "color": "#30000000"}]
    property var shadowLarge: [{"offset": 0, "blur": 12, "color": "#40000000"}]

    // ===== 动画 =====
    property int animationDuration: 200
}