/* public/css/style.css */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #212529;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}
.text-center {
    text-align: center; 
}
/* 表格样式 */
.table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

.table-bordered {
    border: 1px solid #dee2e6;
}

.table-bordered th,
.table-bordered td {
    border: 1px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.075);
}



/* 响应式表格 */
@media (max-width: 768px) {
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table thead {
        display: none;
    }
    
    .table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #dee2e6;
    }
    
    .table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        /* border-bottom: 1px solid #dee2e6; */
        border: 0;
    }
    
    .table td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 10px;
    }
    
    .table td:last-child {
        border-bottom: 0;
    }
}

/* 徽章样式 */
.badge {
    display: inline-block;
    padding: 0.25em 0.4em;
    font-size: 75%;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.badge-primary {
    color: #fff;
    background-color: #007bff;
}

.badge-secondary {
    color: #fff;
    background-color: #6c757d;
}

/* 搜索框 */
.search-container {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 25px;
    overflow: hidden;
}

.search-group {
    display: flex;
    align-items: center;
}

.search-input {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    flex: 1;
}

.search-input:focus {
    outline: none;
    box-shadow: none;
}

.search-btn-container {
    margin: 0;
}

.search-btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: #398ae0;
    color: #ffffff;
    transform: scale(1.05);
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.btn-success {
    color: #272727;
    background-color: #efefef;
    border-color: #333333;
}

.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

/* 其他样式 */
.text-danger {
    color: #dc3545 !important;
}

.text-muted {
    color: #6c757d !important;
}

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

.sold-row {
    background-color: rgba(220, 53, 69, 0.05);
}

/* 分页样式 */


/* 间距调整 */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

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