body {
    font-family: 'Microsoft YaHei', Arial, sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px 0 16px 0;
    margin-left: 40px;
}

.config-status-msg {
    min-width: 180px;
    margin-left: 12px;
    font-size: 16px;
    color: #c00;
    font-weight: bold;
    line-height: 1.6;
    display: inline-block;
    vertical-align: middle;
}

.search-bar label {
    font-size: 18px;
    color: #666;
}

.search-bar input[type="text"] {
    width: 140px;
    height: 32px;
    margin-left: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 16px;
}

#searchBtn, #configKeyBtn, #resetBtn, #exportBtn {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 90px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s;
    margin-right: 6px;
}
#searchBtn:hover, #configKeyBtn:hover, #resetBtn:hover, #exportBtn:hover {
    background: #1565c0;
}
#searchBtn:active, #configKeyBtn:active, #resetBtn:active, #exportBtn:active {
    background: #0d47a1;
}

.order-list {
    margin: 0 40px;
}

.order-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 24px;
    background: #fafafa;
    overflow: hidden;
}

.order-header {
    background: #f5f5f5;
    padding: 10px 20px;
    font-size: 16px;
    color: #666;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    gap: 40px;
}

.order-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.order-table th, .order-table td {
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 18px 8px;
    text-align: center;
    font-size: 16px;
    color: #444;
}

.order-table th:last-child,
.order-table td:last-child {
    border-right: none;
}

.order-table tr:last-child td {
    border-bottom: none;
}

.order-table th {
    color: #888;
    font-weight: normal;
    background: #fafafa;
}

.product-img {
    width: 48px;
    height: 48px;
    background: #eee;
    border-radius: 4px;
    display: inline-block;
    vertical-align: middle;
    object-fit: cover;
}

.order-table .add-btn {
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 6px;
    width: 70px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 0 0;
    font-size: 16px;
    color: #888;
}

.page-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 36px;
    height: 36px;
    margin: 0 2px;
    cursor: pointer;
    color: #c00;
    font-size: 16px;
}

.page-btn.active, .page-btn:active {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

.page-btn[disabled] {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
}

.goto-input {
    width: 40px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 4px;
    text-align: center;
}

/* 弹窗样式 */
.modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.35) !important;
    /* display: flex !important;  由JS控制显示隐藏 */
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
}
.modal-content {
    background: #fff;
    border-radius: 10px;
    padding: 32px 36px 24px 36px;
    min-width: 340px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    margin: 0 auto;
    position: relative;
    z-index: 10000;
}
.modal-content h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: #c00;
    text-align: center;
}
.modal-content label {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: #444;
    margin-bottom: 8px;
    gap: 6px;
}
.modal-content input[type="text"] {
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 15px;
}
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 10px;
}
#submitConfigBtn, #closeConfigBtn {
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 70px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}
#closeConfigBtn {
    background: #888;
}
#submitConfigBtn:hover {
    background: #a00;
}
#closeConfigBtn:hover {
    background: #555;
}
/* 新增下拉框样式 */
select {
    height: 32px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0 8px;
    font-size: 15px;
    background: white;
    width: 80px;
    margin: 0 4px;
}

/* 弹窗内表单布局调整 */
#saveForm label {
    margin-bottom: 15px;
    display: block;
}

#saveForm label input,
#saveForm label select {
    margin-top: 4px;
}
