/* Tailwind CSS 到 Bootstrap 的兼容层 */

/* 宽度 */
.w-full {
    width: 100%;
}

/* 内边距 */
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.py-3 {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}
.py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

/* 边框 */
.border {
    border: 1px solid #dee2e6;
}
.border-gray-300 {
    border-color: #dee2e6;
}

/* 圆角 */
.rounded-md {
    border-radius: 0.375rem;
}

/* 聚焦效果 */
input:focus,
textarea:focus,
select:focus,
button:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}
.focus\:outline-none:focus {
    outline: none;
}
.focus\:ring-2:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}
.focus\:ring-blue-500:focus {
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}

/* 文本颜色 */
.text-red-500 {
    color: #dc3545;
}
.text-sm {
    font-size: 0.875rem;
}
.text-gray-600 {
    color: #6c757d;
}
.text-center {
    text-align: center;
}
.text-gray-500 {
    color: #adb5bd;
}
.text-white {
    color: #fff;
}
.font-medium {
    font-weight: 500;
}
.text-lg {
    font-size: 1.125rem;
}
.text-2xl {
    font-size: 1.5rem;
}
.font-bold {
    font-weight: 700;
}
.text-gray-800 {
    color: #343a40;
}

/* 外边距 */
.mb-1 {
    margin-bottom: 0.25rem;
}
.mt-4 {
    margin-top: 1rem;
}
.mb-4 {
    margin-bottom: 1rem;
}
.mb-6 {
    margin-bottom: 1.5rem;
}
.mb-8 {
    margin-bottom: 2rem;
}
.mr-2 {
    margin-right: 0.5rem;
}

/* 背景颜色 */
.bg-blue-600 {
    background-color: #0d6efd;
}
.hover\:bg-blue-700:hover {
    background-color: #0b5ed7;
}
.bg-red-500 {
    background-color: #dc3545;
}
.hover\:bg-red-600:hover {
    background-color: #bb2d3b;
}

/* 布局 */
.fixed {
    position: fixed;
}
.bottom-4 {
    bottom: 1rem;
}
.left-0 {
    left: 0;
}
.right-0 {
    right: 0;
}
.max-w-md {
    max-width: 28rem;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}
.flex {
    display: flex;
}
.items-center {
    align-items: center;
}
.space-x-3 > :not(:last-child) {
    margin-right: 0.75rem;
}
.flex-1 {
    flex: 1 1 0%;
}

/* 尺寸 */
.h-4 {
    height: 1rem;
}
.w-4 {
    width: 1rem;
}
.h-\[51px\] {
    height: 51px;
}

/* 盒模型 */
.box-sizing\:border-box {
    box-sizing: border-box;
}

/* 过渡效果 */
.transition-all {
    transition: all 0.2s ease-in-out;
}
.duration-300 {
    transition-duration: 0.3s;
}
.whitespace-nowrap {
    white-space: nowrap;
}
.active\:scale-95:active {
    transform: scale(0.95);
}

/* 显示/隐藏 */
.hidden {
    display: none !important;
}