/* ===== orders 模块专用样式（与全局隔离）===== */
.orders-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
}

.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.orders-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}

/* 按钮 */
.orders-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}
.orders-btn-primary {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59,130,246,0.2);
}
.orders-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59,130,246,0.3);
}
.orders-btn-search {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16,185,129,0.2);
}
.orders-btn-search:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16,185,129,0.3);
}

/* 搜索区 */
.orders-search-section {
    margin-bottom: 2.5rem;
}
.orders-search-wrapper {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 0.5rem;
    background: white;
    border-radius: 0.75rem;
    padding: 0.3rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.orders-search-input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
    font-size: 1rem;
    outline: none;
    background: transparent;
}
.orders-search-input:focus {
    box-shadow: inset 0 0 0 2px #3b82f6;
}
.orders-search-wrapper .orders-btn-search {
    border-radius: 0.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.orders-search-stats {
    text-align: center;
    margin-top: 0.8rem;
    color: #64748b;
    font-size: 0.95rem;
}
.orders-search-stats strong {
    color: #3b82f6;
    font-weight: 600;
}

/* 空状态 */
.orders-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.orders-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}
.orders-empty-state p {
    color: #64748b;
    margin-bottom: 1rem;
}
.orders-empty-state .orders-btn {
    margin-top: 1rem;
}

/* 表格 */
.orders-table-responsive {
    overflow-x: auto;
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}
.orders-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}
.orders-data-table th {
    background: #f8fafc;
    padding: 1rem 1.2rem;
    font-weight: 600;
    color: #334155;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.orders-data-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    color: #1e293b;
    vertical-align: middle;
}
.orders-data-table tbody tr:hover {
    background: #f1f5f9;
}
.orders-actions {
    white-space: nowrap;
    text-align: center;
}

/* 图标按钮 */
.orders-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 9999px;
    background: transparent;
    color: #64748b;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
    margin: 0 2px;
}
.orders-icon-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
    transform: scale(1.1);
}

/* 移动端表格（卡片式） */
@media (max-width: 768px) {
    .orders-data-table thead {
        display: none;
    }
    .orders-data-table, 
    .orders-data-table tbody, 
    .orders-data-table tr, 
    .orders-data-table td {
        display: block;
        width: 100%;
    }
    .orders-data-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.5rem;
        background: white;
        padding: 1rem;
    }
    .orders-data-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px dashed #e2e8f0;
    }
    .orders-data-table td:last-child {
        border-bottom: none;
    }
    .orders-data-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        width: 40%;
    }
    .orders-actions {
        justify-content: flex-end;
        gap: 0.5rem;
    }
    .orders-actions::before {
        content: "操作";
    }
}

/* 分页 */
.orders-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.orders-page-num,
.orders-page-prev,
.orders-page-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    background: white;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}
.orders-page-num.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}
.orders-page-num:hover:not(.active),
.orders-page-prev:hover,
.orders-page-next:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}
.orders-page-prev,
.orders-page-next {
    font-size: 0.9rem;
}
/* ===== 图片区域样式 ===== */
.orders-image-section {
    margin: 30px 0;
}
.orders-image-group {
    margin-bottom: 30px;
}
.orders-image-group h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}
.orders-image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.other-gallery .orders-image-item {
    width: calc(33.333% - 10px);
    box-sizing: border-box;
}
.wiring-gallery .orders-image-item {
    width: calc(50% - 7.5px);
    box-sizing: border-box;
}
.orders-image-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    background: white;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.orders-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.orders-image-item img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}
.orders-image-item img:hover {
    transform: scale(1.03);
}
.orders-image-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 14px;
}
@media (max-width: 768px) {
    .other-gallery .orders-image-item,
    .wiring-gallery .orders-image-item {
        width: 100%;
    }
}