/* ===== 标准栅格系统 - 移动优先设计 ===== */
/* 完全兼容 Bootstrap 规范，针对1440px设计稿优化 */

/* ===== 基础容器系统 ===== */
.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 15px; /* 默认最小边距 */
    position: relative;
}

.container-fluid {
    width: 100%;
    padding: 0 15px;
}

/* ===== 行系统 ===== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.no-gutters {
    margin: 0;
}

.no-gutters > [class*="col-"] {
    padding: 0;
}

/* ===== 列系统 ===== */
[class*="col-"] {
    padding: 0 15px;
    box-sizing: border-box;
    flex: 0 0 auto;
    width: 100%; /* 默认移动端全宽 */
}

/* 自动宽度列 */
.col {
    flex: 1 0 0%;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 自适应内容宽度列 */
.col-auto {
    flex: 0 0 auto;
    width: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* ===== 默认栅格 (xs - 移动优先) ===== */
/* 在小屏幕上，默认所有列都是100%宽度，除非特别指定 */
.col-1 { width: 8.333%; flex: 0 0 8.333%; }
.col-2 { width: 16.667%; flex: 0 0 16.667%; }
.col-3 { width: 25%; flex: 0 0 25%; }
.col-4 { width: 33.333%; flex: 0 0 33.333%; }
.col-5 { width: 41.667%; flex: 0 0 41.667%; }
.col-6 { width: 50%; flex: 0 0 50%; }
.col-7 { width: 58.333%; flex: 0 0 58.333%; }
.col-8 { width: 66.667%; flex: 0 0 66.667%; }
.col-9 { width: 75%; flex: 0 0 75%; }
.col-10 { width: 83.333%; flex: 0 0 83.333%; }
.col-11 { width: 91.667%; flex: 0 0 91.667%; }
.col-12 { width: 100%; flex: 0 0 100%; }

/* ===== 响应式断点 - 移动优先 ===== */

/* Small devices (sm) - 576px 及以上 */
@media (min-width: 576px) {
    .container {
        padding: 0 20px;
    }
    
    .container-fluid {
        padding: 0 20px;
    }
    
    .row {
        margin: 0 -15px;
    }
    
    [class*="col-"] {
        padding: 0 15px;
    }
    
    .col-sm-1 { width: 8.333%; flex: 0 0 8.333%; }
    .col-sm-2 { width: 16.667%; flex: 0 0 16.667%; }
    .col-sm-3 { width: 25%; flex: 0 0 25%; }
    .col-sm-4 { width: 33.333%; flex: 0 0 33.333%; }
    .col-sm-5 { width: 41.667%; flex: 0 0 41.667%; }
    .col-sm-6 { width: 50%; flex: 0 0 50%; }
    .col-sm-7 { width: 58.333%; flex: 0 0 58.333%; }
    .col-sm-8 { width: 66.667%; flex: 0 0 66.667%; }
    .col-sm-9 { width: 75%; flex: 0 0 75%; }
    .col-sm-10 { width: 83.333%; flex: 0 0 83.333%; }
    .col-sm-11 { width: 91.667%; flex: 0 0 91.667%; }
    .col-sm-12 { width: 100%; flex: 0 0 100%; }
}

/* Medium devices (md) - 768px 及以上 */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .container-fluid {
        padding: 0 40px;
    }
    
    .col-md-1 { width: 8.333%; flex: 0 0 8.333%; }
    .col-md-2 { width: 16.667%; flex: 0 0 16.667%; }
    .col-md-3 { width: 25%; flex: 0 0 25%; }
    .col-md-4 { width: 33.333%; flex: 0 0 33.333%; }
    .col-md-5 { width: 41.667%; flex: 0 0 41.667%; }
    .col-md-6 { width: 50%; flex: 0 0 50%; }
    .col-md-7 { width: 58.333%; flex: 0 0 58.333%; }
    .col-md-8 { width: 66.667%; flex: 0 0 66.667%; }
    .col-md-9 { width: 75%; flex: 0 0 75%; }
    .col-md-10 { width: 83.333%; flex: 0 0 83.333%; }
    .col-md-11 { width: 91.667%; flex: 0 0 91.667%; }
    .col-md-12 { width: 100%; flex: 0 0 100%; }
}

/* Large devices (lg) - 992px 及以上 */
@media (min-width: 992px) {
    .container {
        padding: 0 60px;
    }
    
    .container-fluid {
        padding: 0 60px;
    }
    
    .col-lg-1 { width: 8.333%; flex: 0 0 8.333%; }
    .col-lg-2 { width: 16.667%; flex: 0 0 16.667%; }
    .col-lg-3 { width: 25%; flex: 0 0 25%; }
    .col-lg-4 { width: 33.333%; flex: 0 0 33.333%; }
    .col-lg-5 { width: 41.667%; flex: 0 0 41.667%; }
    .col-lg-6 { width: 50%; flex: 0 0 50%; }
    .col-lg-7 { width: 58.333%; flex: 0 0 58.333%; }
    .col-lg-8 { width: 66.667%; flex: 0 0 66.667%; }
    .col-lg-9 { width: 75%; flex: 0 0 75%; }
    .col-lg-10 { width: 83.333%; flex: 0 0 83.333%; }
    .col-lg-11 { width: 91.667%; flex: 0 0 91.667%; }
    .col-lg-12 { width: 100%; flex: 0 0 100%; }
}

/* Extra large devices (xl) - 1200px 及以上 */
/* 这是你的1440px设计稿的主要断点 */
@media (min-width: 1200px) {
    .container {
        padding: 0 80px;
    }
    
    .container-fluid {
        padding: 0 80px;
    }
    
    .col-xl-1 { width: 8.333%; flex: 0 0 8.333%; }
    .col-xl-2 { width: 16.667%; flex: 0 0 16.667%; }
    .col-xl-3 { width: 25%; flex: 0 0 25%; }
    .col-xl-4 { width: 33.333%; flex: 0 0 33.333%; }
    .col-xl-5 { width: 41.667%; flex: 0 0 41.667%; }
    .col-xl-6 { width: 50%; flex: 0 0 50%; }
    .col-xl-7 { width: 58.333%; flex: 0 0 58.333%; }
    .col-xl-8 { width: 66.667%; flex: 0 0 66.667%; }
    .col-xl-9 { width: 75%; flex: 0 0 75%; }
    .col-xl-10 { width: 83.333%; flex: 0 0 83.333%; }
    .col-xl-11 { width: 91.667%; flex: 0 0 91.667%; }
    .col-xl-12 { width: 100%; flex: 0 0 100%; }
}

/* Extra extra large devices (xxl) - 1400px 及以上 */
/* 针对你的1440px设计稿优化 */
@media (min-width: 1400px) {
    .container {
        padding: 0 100px; /* 你的设计稿边距 */
    }
    
    .container-fluid {
        padding: 0 100px;
    }
    
    .col-xxl-1 { width: 8.333%; flex: 0 0 8.333%; }
    .col-xxl-2 { width: 16.667%; flex: 0 0 16.667%; }
    .col-xxl-3 { width: 25%; flex: 0 0 25%; }
    .col-xxl-4 { width: 33.333%; flex: 0 0 33.333%; }
    .col-xxl-5 { width: 41.667%; flex: 0 0 41.667%; }
    .col-xxl-6 { width: 50%; flex: 0 0 50%; }
    .col-xxl-7 { width: 58.333%; flex: 0 0 58.333%; }
    .col-xxl-8 { width: 66.667%; flex: 0 0 66.667%; }
    .col-xxl-9 { width: 75%; flex: 0 0 75%; }
    .col-xxl-10 { width: 83.333%; flex: 0 0 83.333%; }
    .col-xxl-11 { width: 91.667%; flex: 0 0 91.667%; }
    .col-xxl-12 { width: 100%; flex: 0 0 100%; }
}

/* ===== 实用工具类 ===== */

/* 对齐系统 */
.align-items-start { align-items: flex-start !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }

.align-self-start { align-self: flex-start !important; }
.align-self-center { align-self: center !important; }
.align-self-end { align-self: flex-end !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

/* 间距系统 */
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }

.p-0 { padding: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

/* 文本工具 */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

/* 显示工具 */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

/* 响应式显示工具 - 移动优先 */
@media (min-width: 576px) {
    .d-sm-none { display: none !important; }
    .d-sm-block { display: block !important; }
    .d-sm-flex { display: flex !important; }
}

@media (min-width: 1648px) {
    .d-md-none { display: none !important; }
    .d-md-block { display: block !important; }
    .d-md-flex { display: flex !important; }
}

@media (min-width: 992px) {
    .d-lg-none { display: none !important; }
    .d-lg-block { display: block !important; }
    .d-lg-flex { display: flex !important; }
}

@media (min-width: 1200px) {
    .d-xl-none { display: none !important; }
    .d-xl-block { display: block !important; }
    .d-xl-flex { display: flex !important; }
}

@media (min-width: 1400px) {
    .d-xxl-none { display: none !important; }
    .d-xxl-block { display: block !important; }
    .d-xxl-flex { display: flex !important; }
}