﻿:root {
    /* 主色调系统 */
    --primary-color: #2567F0;
    --primary-hover: #1E56CC;
    --primary-light: #DCE7FF;

    /* 热门颜色 */
    --hot-color: #ff6d00;
    --hot-hover: #e65100;
    --hot-light: #fff3e0;

    /* 文本颜色 */
    --text-color: #333333;
    --text-secondary: #666666;
    --text-tertiary: #999999;

    /* 背景颜色 */
    --background-color: #ffffff;
    --background-light: #f9f9f9;
    --background-lighter: #f5f5f5;

    /* 边框和阴影 */
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);

    /* 尺寸和间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --transition: all 0.3s ease;
}


html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Microsoft Yahei', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans',
    'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
}

body * {
    box-sizing: border-box;
    flex-shrink: 0;
    margin: 0;
}

.wrap {
    max-width: 1400px;
    margin: 0 auto;
    width: 80%;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}

.justify-evenly {
    justify-content: space-evenly;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.items-center {
    align-items: center;
}

.items-baseline {
    align-items: baseline;
}

.items-stretch {
    align-items: stretch;
}

.self-start {
    align-self: flex-start;
}

.self-end {
    align-self: flex-end;
}

.self-center {
    align-self: center;
}

.self-baseline {
    align-self: baseline;
}

.self-stretch {
    align-self: stretch;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-auto {
    flex: 1 1 auto;
}

.grow {
    flex-grow: 1;
}

.grow-0 {
    flex-grow: 0;
}

.shrink {
    flex-shrink: 1;
}

.shrink-0 {
    flex-shrink: 0;
}

.relative {
    position: relative;
}

.scrollbar {

    /* 滚动条 */

    &::-webkit-scrollbar {
        width: 12px;
        height: 12px;
    }

    /* 滚动条边角 */

    &::-webkit-scrollbar-corner {
        width: 0;
    }

    /* 滚动条轨道 */

    &::-webkit-scrollbar-track {
        padding: 0px 2px;
        background: transparent;
    }

    &::-webkit-scrollbar-track:hover {
        background: rgba(255, 255, 255, 0.04);
    }

    /* 滚动条滑块 */

    &::-webkit-scrollbar-thumb {
        border-radius: 100px;
        background-color: #91BFF6;
        cursor: pointer;
        border: 4px solid transparent;
        background-clip: padding-box;
    }

    &:hover::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.2);
    }

    &:hover::-webkit-scrollbar-thumb:hover {
        border: 2px solid transparent;
    }

    &:hover::-webkit-scrollbar-thumb:active {
        background-color: rgba(255, 255, 255, 0.7);
    }
}
