/* ==========================================================================
   FWQZL验证系统 - 布局样式 (layout.css)
   一次性完整编写，包含所有布局相关的样式
   注意：此文件完成后不再修改
   ========================================================================== */

/* ==================== 容器系统 ==================== */
.container {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}

.container-fluid {
    width: 100%;
    padding-right: var(--container-padding);
    padding-left: var(--container-padding);
    margin-right: auto;
    margin-left: auto;
}

.container-sm {
    max-width: 540px;
}

.container-md {
    max-width: 720px;
}

.container-lg {
    max-width: 960px;
}

.container-xl {
    max-width: 1140px;
}

.container-xxl {
    max-width: var(--container-max-width);
}

/* 容器内边距调整 */
.container-padding-sm {
    padding-right: calc(var(--container-padding) / 2);
    padding-left: calc(var(--container-padding) / 2);
}

.container-padding-lg {
    padding-right: calc(var(--container-padding) * 1.5);
    padding-left: calc(var(--container-padding) * 1.5);
}

/* ==================== 栅格系统 ==================== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row.gutterless {
    margin-right: 0;
    margin-left: 0;
}

.row.gutterless > .col,
.row.gutterless > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.row.gutter-sm {
    margin-right: -10px;
    margin-left: -10px;
}

.row.gutter-sm > .col,
.row.gutter-sm > [class*="col-"] {
    padding-right: 10px;
    padding-left: 10px;
}

.row.gutter-lg {
    margin-right: -20px;
    margin-left: -20px;
}

.row.gutter-lg > .col,
.row.gutter-lg > [class*="col-"] {
    padding-right: 20px;
    padding-left: 20px;
}

.col,
.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
.col-7, .col-8, .col-9, .col-10, .col-11, .col-12,
.col-auto, .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
.col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12,
.col-sm-auto, .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
.col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
.col-md-auto, .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
.col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
.col-lg-auto, .col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6,
.col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12,
.col-xl-auto {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* 顺序控制 */
.order-first {
    order: -1;
}

.order-last {
    order: 13;
}

.order-0 {
    order: 0;
}

.order-1 {
    order: 1;
}

.order-2 {
    order: 2;
}

.order-3 {
    order: 3;
}

.order-4 {
    order: 4;
}

.order-5 {
    order: 5;
}

.order-6 {
    order: 6;
}

.order-7 {
    order: 7;
}

.order-8 {
    order: 8;
}

.order-9 {
    order: 9;
}

.order-10 {
    order: 10;
}

.order-11 {
    order: 11;
}

.order-12 {
    order: 12;
}

/* 偏移控制 */
.offset-1 {
    margin-left: 8.333333%;
}

.offset-2 {
    margin-left: 16.666667%;
}

.offset-3 {
    margin-left: 25%;
}

.offset-4 {
    margin-left: 33.333333%;
}

.offset-5 {
    margin-left: 41.666667%;
}

.offset-6 {
    margin-left: 50%;
}

.offset-7 {
    margin-left: 58.333333%;
}

.offset-8 {
    margin-left: 66.666667%;
}

.offset-9 {
    margin-left: 75%;
}

.offset-10 {
    margin-left: 83.333333%;
}

.offset-11 {
    margin-left: 91.666667%;
}

/* ==================== 响应式栅格系统 ==================== */

/* 小屏幕 (≥576px) */
@media (min-width: 576px) {
    .col-sm {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    
    .col-sm-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }
    
    .col-sm-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    
    .col-sm-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-sm-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-sm-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-sm-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-sm-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-sm-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    .col-sm-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    
    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order-sm-first {
        order: -1;
    }
    
    .order-sm-last {
        order: 13;
    }
    
    .order-sm-0 {
        order: 0;
    }
    
    .order-sm-1 {
        order: 1;
    }
    
    .order-sm-2 {
        order: 2;
    }
    
    .order-sm-3 {
        order: 3;
    }
    
    .order-sm-4 {
        order: 4;
    }
    
    .order-sm-5 {
        order: 5;
    }
    
    .order-sm-6 {
        order: 6;
    }
    
    .order-sm-7 {
        order: 7;
    }
    
    .order-sm-8 {
        order: 8;
    }
    
    .order-sm-9 {
        order: 9;
    }
    
    .order-sm-10 {
        order: 10;
    }
    
    .order-sm-11 {
        order: 11;
    }
    
    .order-sm-12 {
        order: 12;
    }
    
    .offset-sm-0 {
        margin-left: 0;
    }
    
    .offset-sm-1 {
        margin-left: 8.333333%;
    }
    
    .offset-sm-2 {
        margin-left: 16.666667%;
    }
    
    .offset-sm-3 {
        margin-left: 25%;
    }
    
    .offset-sm-4 {
        margin-left: 33.333333%;
    }
    
    .offset-sm-5 {
        margin-left: 41.666667%;
    }
    
    .offset-sm-6 {
        margin-left: 50%;
    }
    
    .offset-sm-7 {
        margin-left: 58.333333%;
    }
    
    .offset-sm-8 {
        margin-left: 66.666667%;
    }
    
    .offset-sm-9 {
        margin-left: 75%;
    }
    
    .offset-sm-10 {
        margin-left: 83.333333%;
    }
    
    .offset-sm-11 {
        margin-left: 91.666667%;
    }
}

/* 中等屏幕 (≥768px) */
@media (min-width: 768px) {
    .col-md {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    
    .col-md-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }
    
    .col-md-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    
    .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-md-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-md-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-md-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    .col-md-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    
    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order-md-first {
        order: -1;
    }
    
    .order-md-last {
        order: 13;
    }
    
    .order-md-0 {
        order: 0;
    }
    
    .order-md-1 {
        order: 1;
    }
    
    .order-md-2 {
        order: 2;
    }
    
    .order-md-3 {
        order: 3;
    }
    
    .order-md-4 {
        order: 4;
    }
    
    .order-md-5 {
        order: 5;
    }
    
    .order-md-6 {
        order: 6;
    }
    
    .order-md-7 {
        order: 7;
    }
    
    .order-md-8 {
        order: 8;
    }
    
    .order-md-9 {
        order: 9;
    }
    
    .order-md-10 {
        order: 10;
    }
    
    .order-md-11 {
        order: 11;
    }
    
    .order-md-12 {
        order: 12;
    }
    
    .offset-md-0 {
        margin-left: 0;
    }
    
    .offset-md-1 {
        margin-left: 8.333333%;
    }
    
    .offset-md-2 {
        margin-left: 16.666667%;
    }
    
    .offset-md-3 {
        margin-left: 25%;
    }
    
    .offset-md-4 {
        margin-left: 33.333333%;
    }
    
    .offset-md-5 {
        margin-left: 41.666667%;
    }
    
    .offset-md-6 {
        margin-left: 50%;
    }
    
    .offset-md-7 {
        margin-left: 58.333333%;
    }
    
    .offset-md-8 {
        margin-left: 66.666667%;
    }
    
    .offset-md-9 {
        margin-left: 75%;
    }
    
    .offset-md-10 {
        margin-left: 83.333333%;
    }
    
    .offset-md-11 {
        margin-left: 91.666667%;
    }
}

/* 大屏幕 (≥992px) */
@media (min-width: 992px) {
    .col-lg {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    
    .col-lg-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }
    
    .col-lg-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    
    .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-lg-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-lg-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-lg-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-lg-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-lg-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    .col-lg-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    
    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order-lg-first {
        order: -1;
    }
    
    .order-lg-last {
        order: 13;
    }
    
    .order-lg-0 {
        order: 0;
    }
    
    .order-lg-1 {
        order: 1;
    }
    
    .order-lg-2 {
        order: 2;
    }
    
    .order-lg-3 {
        order: 3;
    }
    
    .order-lg-4 {
        order: 4;
    }
    
    .order-lg-5 {
        order: 5;
    }
    
    .order-lg-6 {
        order: 6;
    }
    
    .order-lg-7 {
        order: 7;
    }
    
    .order-lg-8 {
        order: 8;
    }
    
    .order-lg-9 {
        order: 9;
    }
    
    .order-lg-10 {
        order: 10;
    }
    
    .order-lg-11 {
        order: 11;
    }
    
    .order-lg-12 {
        order: 12;
    }
    
    .offset-lg-0 {
        margin-left: 0;
    }
    
    .offset-lg-1 {
        margin-left: 8.333333%;
    }
    
    .offset-lg-2 {
        margin-left: 16.666667%;
    }
    
    .offset-lg-3 {
        margin-left: 25%;
    }
    
    .offset-lg-4 {
        margin-left: 33.333333%;
    }
    
    .offset-lg-5 {
        margin-left: 41.666667%;
    }
    
    .offset-lg-6 {
        margin-left: 50%;
    }
    
    .offset-lg-7 {
        margin-left: 58.333333%;
    }
    
    .offset-lg-8 {
        margin-left: 66.666667%;
    }
    
    .offset-lg-9 {
        margin-left: 75%;
    }
    
    .offset-lg-10 {
        margin-left: 83.333333%;
    }
    
    .offset-lg-11 {
        margin-left: 91.666667%;
    }
}

/* 超大屏幕 (≥1200px) */
@media (min-width: 1200px) {
    .col-xl {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    
    .col-xl-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }
    
    .col-xl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    
    .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-xl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-xl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-xl-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-xl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-xl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-xl-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-xl-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-xl-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    .col-xl-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    
    .col-xl-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order-xl-first {
        order: -1;
    }
    
    .order-xl-last {
        order: 13;
    }
    
    .order-xl-0 {
        order: 0;
    }
    
    .order-xl-1 {
        order: 1;
    }
    
    .order-xl-2 {
        order: 2;
    }
    
    .order-xl-3 {
        order: 3;
    }
    
    .order-xl-4 {
        order: 4;
    }
    
    .order-xl-5 {
        order: 5;
    }
    
    .order-xl-6 {
        order: 6;
    }
    
    .order-xl-7 {
        order: 7;
    }
    
    .order-xl-8 {
        order: 8;
    }
    
    .order-xl-9 {
        order: 9;
    }
    
    .order-xl-10 {
        order: 10;
    }
    
    .order-xl-11 {
        order: 11;
    }
    
    .order-xl-12 {
        order: 12;
    }
    
    .offset-xl-0 {
        margin-left: 0;
    }
    
    .offset-xl-1 {
        margin-left: 8.333333%;
    }
    
    .offset-xl-2 {
        margin-left: 16.666667%;
    }
    
    .offset-xl-3 {
        margin-left: 25%;
    }
    
    .offset-xl-4 {
        margin-left: 33.333333%;
    }
    
    .offset-xl-5 {
        margin-left: 41.666667%;
    }
    
    .offset-xl-6 {
        margin-left: 50%;
    }
    
    .offset-xl-7 {
        margin-left: 58.333333%;
    }
    
    .offset-xl-8 {
        margin-left: 66.666667%;
    }
    
    .offset-xl-9 {
        margin-left: 75%;
    }
    
    .offset-xl-10 {
        margin-left: 83.333333%;
    }
    
    .offset-xl-11 {
        margin-left: 91.666667%;
    }
}

/* 超超大屏幕 (≥1400px) */
@media (min-width: 1400px) {
    .col-xxl {
        flex-basis: 0;
        flex-grow: 1;
        max-width: 100%;
    }
    
    .col-xxl-auto {
        flex: 0 0 auto;
        width: auto;
        max-width: 100%;
    }
    
    .col-xxl-1 {
        flex: 0 0 8.333333%;
        max-width: 8.333333%;
    }
    
    .col-xxl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
    
    .col-xxl-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
    
    .col-xxl-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
    
    .col-xxl-5 {
        flex: 0 0 41.666667%;
        max-width: 41.666667%;
    }
    
    .col-xxl-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .col-xxl-7 {
        flex: 0 0 58.333333%;
        max-width: 58.333333%;
    }
    
    .col-xxl-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-xxl-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-xxl-10 {
        flex: 0 0 83.333333%;
        max-width: 83.333333%;
    }
    
    .col-xxl-11 {
        flex: 0 0 91.666667%;
        max-width: 91.666667%;
    }
    
    .col-xxl-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .order-xxl-first {
        order: -1;
    }
    
    .order-xxl-last {
        order: 13;
    }
    
    .order-xxl-0 {
        order: 0;
    }
    
    .order-xxl-1 {
        order: 1;
    }
    
    .order-xxl-2 {
        order: 2;
    }
    
    .order-xxl-3 {
        order: 3;
    }
    
    .order-xxl-4 {
        order: 4;
    }
    
    .order-xxl-5 {
        order: 5;
    }
    
    .order-xxl-6 {
        order: 6;
    }
    
    .order-xxl-7 {
        order: 7;
    }
    
    .order-xxl-8 {
        order: 8;
    }
    
    .order-xxl-9 {
        order: 9;
    }
    
    .order-xxl-10 {
        order: 10;
    }
    
    .order-xxl-11 {
        order: 11;
    }
    
    .order-xxl-12 {
        order: 12;
    }
    
    .offset-xxl-0 {
        margin-left: 0;
    }
    
    .offset-xxl-1 {
        margin-left: 8.333333%;
    }
    
    .offset-xxl-2 {
        margin-left: 16.666667%;
    }
    
    .offset-xxl-3 {
        margin-left: 25%;
    }
    
    .offset-xxl-4 {
        margin-left: 33.333333%;
    }
    
    .offset-xxl-5 {
        margin-left: 41.666667%;
    }
    
    .offset-xxl-6 {
        margin-left: 50%;
    }
    
    .offset-xxl-7 {
        margin-left: 58.333333%;
    }
    
    .offset-xxl-8 {
        margin-left: 66.666667%;
    }
    
    .offset-xxl-9 {
        margin-left: 75%;
    }
    
    .offset-xxl-10 {
        margin-left: 83.333333%;
    }
    
    .offset-xxl-11 {
        margin-left: 91.666667%;
    }
}

/* ==================== 弹性盒子布局 ==================== */
.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

/* 方向控制 */
.flex-row {
    flex-direction: row !important;
}

.flex-row-reverse {
    flex-direction: row-reverse !important;
}

.flex-column {
    flex-direction: column !important;
}

.flex-column-reverse {
    flex-direction: column-reverse !important;
}

/* 换行控制 */
.flex-wrap {
    flex-wrap: wrap !important;
}

.flex-nowrap {
    flex-wrap: nowrap !important;
}

.flex-wrap-reverse {
    flex-wrap: wrap-reverse !important;
}

/* 主轴对齐 */
.justify-content-start {
    justify-content: flex-start !important;
}

.justify-content-end {
    justify-content: flex-end !important;
}

.justify-content-center {
    justify-content: center !important;
}

.justify-content-between {
    justify-content: space-between !important;
}

.justify-content-around {
    justify-content: space-around !important;
}

.justify-content-evenly {
    justify-content: space-evenly !important;
}

/* 交叉轴对齐 */
.align-items-start {
    align-items: flex-start !important;
}

.align-items-end {
    align-items: flex-end !important;
}

.align-items-center {
    align-items: center !important;
}

.align-items-baseline {
    align-items: baseline !important;
}

.align-items-stretch {
    align-items: stretch !important;
}

/* 项目自身对齐 */
.align-self-auto {
    align-self: auto !important;
}

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

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

.align-self-center {
    align-self: center !important;
}

.align-self-baseline {
    align-self: baseline !important;
}

.align-self-stretch {
    align-self: stretch !important;
}

/* 多行对齐 */
.align-content-start {
    align-content: flex-start !important;
}

.align-content-end {
    align-content: flex-end !important;
}

.align-content-center {
    align-content: center !important;
}

.align-content-between {
    align-content: space-between !important;
}

.align-content-around {
    align-content: space-around !important;
}

.align-content-stretch {
    align-content: stretch !important;
}

/* 伸缩因子 */
.flex-fill {
    flex: 1 1 auto !important;
}

.flex-1 {
    flex: 1 !important;
}

.flex-2 {
    flex: 2 !important;
}

.flex-3 {
    flex: 3 !important;
}

.flex-4 {
    flex: 4 !important;
}

.flex-5 {
    flex: 5 !important;
}

.flex-grow-0 {
    flex-grow: 0 !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

.flex-shrink-1 {
    flex-shrink: 1 !important;
}

/* ==================== 定位布局 ==================== */
.position-static {
    position: static !important;
}

.position-relative {
    position: relative !important;
}

.position-absolute {
    position: absolute !important;
}

.position-fixed {
    position: fixed !important;
}

.position-sticky {
    position: sticky !important;
}

/* 位置控制 */
.top-0 {
    top: 0 !important;
}

.top-50 {
    top: 50% !important;
}

.top-100 {
    top: 100% !important;
}

.bottom-0 {
    bottom: 0 !important;
}

.bottom-50 {
    bottom: 50% !important;
}

.bottom-100 {
    bottom: 100% !important;
}

.start-0 {
    left: 0 !important;
}

.start-50 {
    left: 50% !important;
}

.start-100 {
    left: 100% !important;
}

.end-0 {
    right: 0 !important;
}

.end-50 {
    right: 50% !important;
}

.end-100 {
    right: 100% !important;
}

.translate-middle {
    transform: translate(-50%, -50%) !important;
}

.translate-middle-x {
    transform: translateX(-50%) !important;
}

.translate-middle-y {
    transform: translateY(-50%) !important;
}

/* 浮动布局 */
.float-start {
    float: left !important;
}

.float-end {
    float: right !important;
}

.float-none {
    float: none !important;
}

.clearfix::after {
    display: block;
    clear: both;
    content: "";
}

/* ==================== 间距系统 ==================== */
/* 边距 */
.m-0 {
    margin: 0 !important;
}

.m-1 {
    margin: 0.25rem !important;
}

.m-2 {
    margin: 0.5rem !important;
}

.m-3 {
    margin: 1rem !important;
}

.m-4 {
    margin: 1.5rem !important;
}

.m-5 {
    margin: 3rem !important;
}

.m-auto {
    margin: auto !important;
}

/* 水平边距 */
.mx-0 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mx-1 {
    margin-left: 0.25rem !important;
    margin-right: 0.25rem !important;
}

.mx-2 {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

.mx-3 {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
}

.mx-4 {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

.mx-5 {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
}

.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 垂直边距 */
.my-0 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.my-1 {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.my-2 {
    margin-top: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.my-3 {
    margin-top: 1rem !important;
    margin-bottom: 1rem !important;
}

.my-4 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.my-auto {
    margin-top: auto !important;
    margin-bottom: auto !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;
}

.mt-auto {
    margin-top: auto !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;
}

.mb-auto {
    margin-bottom: auto !important;
}

.ms-0 {
    margin-left: 0 !important;
}

.ms-1 {
    margin-left: 0.25rem !important;
}

.ms-2 {
    margin-left: 0.5rem !important;
}

.ms-3 {
    margin-left: 1rem !important;
}

.ms-4 {
    margin-left: 1.5rem !important;
}

.ms-5 {
    margin-left: 3rem !important;
}

.ms-auto {
    margin-left: auto !important;
}

.me-0 {
    margin-right: 0 !important;
}

.me-1 {
    margin-right: 0.25rem !important;
}

.me-2 {
    margin-right: 0.5rem !important;
}

.me-3 {
    margin-right: 1rem !important;
}

.me-4 {
    margin-right: 1.5rem !important;
}

.me-5 {
    margin-right: 3rem !important;
}

.me-auto {
    margin-right: auto !important;
}

/* 内边距 */
.p-0 {
    padding: 0 !important;
}

.p-1 {
    padding: 0.25rem !important;
}

.p-2 {
    padding: 0.5rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.p-5 {
    padding: 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;
}

/* 垂直内边距 */
.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;
}

/* 单边内边距 */
.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;
}

.ps-0 {
    padding-left: 0 !important;
}

.ps-1 {
    padding-left: 0.25rem !important;
}

.ps-2 {
    padding-left: 0.5rem !important;
}

.ps-3 {
    padding-left: 1rem !important;
}

.ps-4 {
    padding-left: 1.5rem !important;
}

.ps-5 {
    padding-left: 3rem !important;
}

.pe-0 {
    padding-right: 0 !important;
}

.pe-1 {
    padding-right: 0.25rem !important;
}

.pe-2 {
    padding-right: 0.5rem !important;
}

.pe-3 {
    padding-right: 1rem !important;
}

.pe-4 {
    padding-right: 1.5rem !important;
}

.pe-5 {
    padding-right: 3rem !important;
}

/* ==================== 显示和可见性 ==================== */
/* 显示类型 */
.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-table {
    display: table !important;
}

.d-table-row {
    display: table-row !important;
}

.d-table-cell {
    display: table-cell !important;
}

.d-flex {
    display: flex !important;
}

.d-inline-flex {
    display: inline-flex !important;
}

/* 响应式显示 */
@media (max-width: 575.98px) {
    .d-xs-none {
        display: none !important;
    }
    
    .d-xs-inline {
        display: inline !important;
    }
    
    .d-xs-inline-block {
        display: inline-block !important;
    }
    
    .d-xs-block {
        display: block !important;
    }
    
    .d-xs-flex {
        display: flex !important;
    }
    
    .d-xs-inline-flex {
        display: inline-flex !important;
    }
}

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

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

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

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

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

/* 打印显示 */
@media print {
    .d-print-none {
        display: none !important;
    }
    
    .d-print-inline {
        display: inline !important;
    }
    
    .d-print-inline-block {
        display: inline-block !important;
    }
    
    .d-print-block {
        display: block !important;
    }
    
    .d-print-flex {
        display: flex !important;
    }
    
    .d-print-inline-flex {
        display: inline-flex !important;
    }
}

/* 可见性 */
.visible {
    visibility: visible !important;
}

.invisible {
    visibility: hidden !important;
}

/* ==================== 文本处理 ==================== */
/* 文本对齐 */
.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

/* 文本换行 */
.text-nowrap {
    white-space: nowrap !important;
}

.text-wrap {
    white-space: normal !important;
}

.text-break {
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* 文本转换 */
.text-lowercase {
    text-transform: lowercase !important;
}

.text-uppercase {
    text-transform: uppercase !important;
}

.text-capitalize {
    text-transform: capitalize !important;
}

/* 字体粗细 */
.fw-light {
    font-weight: 300 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-medium {
    font-weight: 500 !important;
}

.fw-semibold {
    font-weight: 600 !important;
}

.fw-bold {
    font-weight: 700 !important;
}

.fw-bolder {
    font-weight: 900 !important;
}

/* 字体样式 */
.fst-italic {
    font-style: italic !important;
}

.fst-normal {
    font-style: normal !important;
}

/* 行高 */
.lh-1 {
    line-height: 1 !important;
}

.lh-sm {
    line-height: 1.25 !important;
}

.lh-base {
    line-height: 1.5 !important;
}

.lh-lg {
    line-height: 2 !important;
}

/* 文本装饰 */
.text-decoration-none {
    text-decoration: none !important;
}

.text-decoration-underline {
    text-decoration: underline !important;
}

.text-decoration-line-through {
    text-decoration: line-through !important;
}

/* ==================== 边框和阴影 ==================== */
/* 边框 */
.border {
    border: var(--border-width-thin) solid var(--border-color-light) !important;
}

.border-0 {
    border: 0 !important;
}

.border-top {
    border-top: var(--border-width-thin) solid var(--border-color-light) !important;
}

.border-top-0 {
    border-top: 0 !important;
}

.border-end {
    border-right: var(--border-width-thin) solid var(--border-color-light) !important;
}

.border-end-0 {
    border-right: 0 !important;
}

.border-bottom {
    border-bottom: var(--border-width-thin) solid var(--border-color-light) !important;
}

.border-bottom-0 {
    border-bottom: 0 !important;
}

.border-start {
    border-left: var(--border-width-thin) solid var(--border-color-light) !important;
}

.border-start-0 {
    border-left: 0 !important;
}

/* 边框颜色 */
.border-primary {
    border-color: var(--primary-color) !important;
}

.border-secondary {
    border-color: var(--secondary-color) !important;
}

.border-success {
    border-color: var(--success-color) !important;
}

.border-danger {
    border-color: var(--danger-color) !important;
}

.border-warning {
    border-color: var(--warning-color) !important;
}

.border-info {
    border-color: var(--info-color) !important;
}

.border-light {
    border-color: var(--gray-300) !important;
}

.border-dark {
    border-color: var(--gray-800) !important;
}

.border-white {
    border-color: var(--white) !important;
}

/* 边框宽度 */
.border-1 {
    border-width: 1px !important;
}

.border-2 {
    border-width: 2px !important;
}

.border-3 {
    border-width: 3px !important;
}

.border-4 {
    border-width: 4px !important;
}

.border-5 {
    border-width: 5px !important;
}

/* 圆角 */
.rounded {
    border-radius: var(--border-radius-md) !important;
}

.rounded-0 {
    border-radius: 0 !important;
}

.rounded-1 {
    border-radius: var(--border-radius-sm) !important;
}

.rounded-2 {
    border-radius: var(--border-radius-md) !important;
}

.rounded-3 {
    border-radius: var(--border-radius-lg) !important;
}

.rounded-circle {
    border-radius: 50% !important;
}

.rounded-pill {
    border-radius: 50rem !important;
}

.rounded-top {
    border-top-left-radius: var(--border-radius-md) !important;
    border-top-right-radius: var(--border-radius-md) !important;
}

.rounded-end {
    border-top-right-radius: var(--border-radius-md) !important;
    border-bottom-right-radius: var(--border-radius-md) !important;
}

.rounded-bottom {
    border-bottom-right-radius: var(--border-radius-md) !important;
    border-bottom-left-radius: var(--border-radius-md) !important;
}

.rounded-start {
    border-bottom-left-radius: var(--border-radius-md) !important;
    border-top-left-radius: var(--border-radius-md) !important;
}

/* 阴影 */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.shadow-xl {
    box-shadow: var(--shadow-xl) !important;
}

.shadow-none {
    box-shadow: none !important;
}

/* ==================== 溢出处理 ==================== */
.overflow-auto {
    overflow: auto !important;
}

.overflow-hidden {
    overflow: hidden !important;
}

.overflow-visible {
    overflow: visible !important;
}

.overflow-scroll {
    overflow: scroll !important;
}

.overflow-x-auto {
    overflow-x: auto !important;
}

.overflow-x-hidden {
    overflow-x: hidden !important;
}

.overflow-x-visible {
    overflow-x: visible !important;
}

.overflow-x-scroll {
    overflow-x: scroll !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.overflow-y-hidden {
    overflow-y: hidden !important;
}

.overflow-y-visible {
    overflow-y: visible !important;
}

.overflow-y-scroll {
    overflow-y: scroll !important;
}

/* ==================== 尺寸控制 ==================== */
/* 宽度 */
.w-25 {
    width: 25% !important;
}

.w-50 {
    width: 50% !important;
}

.w-75 {
    width: 75% !important;
}

.w-100 {
    width: 100% !important;
}

.w-auto {
    width: auto !important;
}

/* 最小宽度 */
.mw-100 {
    max-width: 100% !important;
}

.mw-75 {
    max-width: 75% !important;
}

.mw-50 {
    max-width: 50% !important;
}

.mw-25 {
    max-width: 25% !important;
}

/* 视口宽度 */
.vw-100 {
    width: 100vw !important;
}

.vw-75 {
    width: 75vw !important;
}

.vw-50 {
    width: 50vw !important;
}

.vw-25 {
    width: 25vw !important;
}

/* 高度 */
.h-25 {
    height: 25% !important;
}

.h-50 {
    height: 50% !important;
}

.h-75 {
    height: 75% !important;
}

.h-100 {
    height: 100% !important;
}

.h-auto {
    height: auto !important;
}

/* 最小高度 */
.mh-100 {
    max-height: 100% !important;
}

.mh-75 {
    max-height: 75% !important;
}

.mh-50 {
    max-height: 50% !important;
}

.mh-25 {
    max-height: 25% !important;
}

/* 视口高度 */
.vh-100 {
    height: 100vh !important;
}

.vh-75 {
    height: 75vh !important;
}

.vh-50 {
    height: 50vh !important;
}

.vh-25 {
    height: 25vh !important;
}

/* ==================== 页面布局结构 ==================== */
/* 页面包装器 */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-content {
    flex: 1 0 auto;
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

/* 头部布局 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-index-fixed);
    display: flex;
    align-items: center;
    padding: 0 var(--container-padding);
}

.header-brand {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* 侧边栏布局 */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-index-sticky);
    overflow-y: auto;
    transition: width var(--transition-normal);
}

.sidebar-collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-menu {
    padding: var(--spacing-md) 0;
    list-style: none;
}

.sidebar-item {
    margin-bottom: var(--spacing-xs);
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background-color: var(--gray-50);
    color: var(--primary-color);
}

.sidebar-link.active {
    background-color: var(--primary-lighter);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-icon {
    margin-right: var(--spacing-sm);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.sidebar-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-collapsed .sidebar-text {
    display: none;
}

/* 主内容区 */
.main-content {
    margin-left: var(--sidebar-width);
    padding: var(--spacing-lg);
    transition: margin-left var(--transition-normal);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

.sidebar-collapsed + .main-content {
    margin-left: var(--sidebar-collapsed-width);
}

/* 内容区卡片布局 */
.content-card {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: var(--border-width-thin) solid var(--border-color-light);
}

.content-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin: 0;
}

.content-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* 表格布局 */
.table-container {
    overflow-x: auto;
    border-radius: var(--border-radius-md);
    border: var(--border-width-thin) solid var(--border-color-light);
}

.table-responsive {
    min-width: 100%;
}

/* 表单布局 */
.form-layout {
    display: grid;
    gap: var(--spacing-lg);
}

.form-section {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.form-section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: var(--border-width-thin) solid var(--border-color-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

/* 网格布局 */
.grid-layout {
    display: grid;
    gap: var(--spacing-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 仪表板布局 */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.dashboard-widget {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.dashboard-widget-lg {
    grid-column: span 2;
}

.dashboard-widget-full {
    grid-column: 1 / -1;
}

/* 卡片网格布局 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

/* 列表布局 */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.list-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background-color: var(--white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.list-item-icon {
    margin-right: var(--spacing-md);
    font-size: 1.5rem;
    color: var(--primary-color);
}

.list-item-content {
    flex: 1;
}

.list-item-actions {
    margin-left: var(--spacing-md);
}

/* 模态框布局 */
.modal-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.modal-header,
.modal-footer {
    flex-shrink: 0;
}

.modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
}

/* 页脚布局 */
.footer {
    background-color: var(--gray-900);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.footer-section {
    margin-bottom: var(--spacing-lg);
}

.footer-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--white);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-link {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: var(--spacing-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    text-align: center;
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

/* ==================== 响应式布局调整 ==================== */
@media (max-width: 767.98px) {
    .header {
        padding: 0 var(--spacing-md);
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: var(--z-index-modal);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        padding: var(--spacing-md);
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-md);
    }
    
    .content-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .dashboard-widget-lg,
    .dashboard-widget-full {
        grid-column: 1;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .list-item-icon {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .list-item-actions {
        margin-left: 0;
        margin-top: var(--spacing-sm);
        align-self: stretch;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .sidebar {
        width: 200px;
    }
    
    .main-content {
        margin-left: 200px;
    }
    
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== 打印布局调整 ==================== */
@media print {
    .header,
    .sidebar,
    .footer,
    .content-actions,
    .btn {
        display: none !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }
    
    .content-card {
        box-shadow: none !important;
        border: 1px solid var(--border-color-light) !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    .no-break {
        page-break-inside: avoid;
    }
}

/* ==================== 辅助布局类 ==================== */
/* 垂直居中 */
.v-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* 水平居中 */
.h-center {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* 完全居中 */
.full-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* 分割线 */
.divider {
    height: 1px;
    background-color: var(--border-color-light);
    margin: var(--spacing-lg) 0;
    border: none;
}

.divider-vertical {
    width: 1px;
    height: 100%;
    background-color: var(--border-color-light);
    margin: 0 var(--spacing-lg);
    border: none;
}

/* 间距分隔 */
.spacer {
    flex: 1;
}

/* 固定底部 */
.sticky-bottom {
    position: sticky;
    bottom: 0;
    background-color: var(--white);
    padding: var(--spacing-md) 0;
    border-top: var(--border-width-thin) solid var(--border-color-light);
    z-index: var(--z-index-sticky);
}

/* 全屏覆盖 */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-index-modal-backdrop);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-content {
    background-color: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-xl);
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
    box-shadow: var(--shadow-xl);
}

/* ==================== 动画布局类 ==================== */
/* 淡入淡出 */
.fade-in {
    animation: fadeIn var(--animation-duration-normal) ease-in-out;
}

.fade-out {
    animation: fadeOut var(--animation-duration-normal) ease-in-out;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* 滑动动画 */
.slide-in-up {
    animation: slideInUp var(--animation-duration-normal) ease-out;
}

.slide-in-down {
    animation: slideInDown var(--animation-duration-normal) ease-out;
}

.slide-in-left {
    animation: slideInLeft var(--animation-duration-normal) ease-out;
}

.slide-in-right {
    animation: slideInRight var(--animation-duration-normal) ease-out;
}

/* 缩放动画 */
.scale-in {
    animation: scaleIn var(--animation-duration-normal) ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scale-out {
    animation: scaleOut var(--animation-duration-normal) ease-out;
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.9);
        opacity: 0;
    }
}

/* 旋转动画 */
.rotate-in {
    animation: rotateIn var(--animation-duration-normal) ease-out;
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: rotate(0);
        opacity: 1;
    }
}

/* ==================== 自定义滚动条 ==================== */
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-400) var(--gray-100);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ==================== 布局工具类 ==================== */
/* 文本溢出省略 */
.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 多行文本溢出省略 */
.text-ellipsis-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 阴影层级 */
.z-index-1 {
    z-index: 1 !important;
}

.z-index-2 {
    z-index: 2 !important;
}

.z-index-3 {
    z-index: 3 !important;
}

.z-index-4 {
    z-index: 4 !important;
}

.z-index-5 {
    z-index: 5 !important;
}

/* 鼠标指针 */
.cursor-pointer {
    cursor: pointer !important;
}

.cursor-default {
    cursor: default !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.cursor-move {
    cursor: move !important;
}

/* 用户选择 */
.user-select-none {
    user-select: none !important;
}

.user-select-all {
    user-select: all !important;
}

.user-select-auto {
    user-select: auto !important;
}

/* 透明度 */
.opacity-0 {
    opacity: 0 !important;
}

.opacity-25 {
    opacity: 0.25 !important;
}

.opacity-50 {
    opacity: 0.5 !important;
}

.opacity-75 {
    opacity: 0.75 !important;
}

.opacity-100 {
    opacity: 1 !important;
}

/* ==================== 布局结束 ==================== */
