/* ========== 页面头部 ========== */
.ol-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ol-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.ol-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #6b7280;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.ol-back-link:hover {
    color: var(--color-primary, #226AFF);
}

.ol-back-link svg {
    width: 16px;
    height: 16px;
}

/* ========== 搜索区 ========== */
.ol-search-section {
    margin-bottom: 20px;
}

.ol-search-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ol-search-input {
    flex: 1;
    max-width: 400px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    color: #374151;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

.ol-search-input:focus {
    border-color: var(--color-primary, #226AFF);
}

.ol-search-input::placeholder {
    color: #9ca3af;
}

.ol-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--color-primary, #226AFF);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.ol-search-btn:hover {
    background: var(--color-primary-dark, #1a54cc);
}

.ol-search-btn svg {
    width: 16px;
    height: 16px;
}

.ol-clear-btn {
    padding: 10px 16px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ol-clear-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ========== 状态导航 ========== */
.ol-status-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.ol-status-tab {
    display: inline-flex;
    align-items: center;
    padding: 7px 16px;
    border-radius: 20px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    white-space: nowrap;
    font-family: inherit;
}

.ol-status-tab:hover {
    background: #e5e7eb;
    color: #374151;
}

.ol-status-tab.active {
    background: var(--color-primary, #226AFF);
    color: #fff;
}

.ol-status-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    margin-left: 6px;
    border-radius: 9px;
    background: rgba(0,0,0,0.08);
    font-size: 11px;
    font-weight: 600;
}

.ol-status-tab.active .ol-status-count {
    background: rgba(255,255,255,0.25);
}

/* ========== 订单卡片列表 ========== */
.ol-card-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ol-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.2s;
    border: 1px solid #f3f4f6;
}

.ol-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ol-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.ol-card-number {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.ol-card-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.ol-card-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.ol-card-status.status-pending {
    background: rgba(255, 149, 0, 0.1);
    color: #ff9500;
}

.ol-card-status.status-processing {
    background: rgba(90, 200, 250, 0.1);
    color: #5ac8fa;
}

.ol-card-status.status-preparing {
    background: rgba(88, 86, 214, 0.1);
    color: #5856d6;
}

.ol-card-status.status-shipping {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.ol-card-status.status-completed {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.ol-card-status.status-problem {
    background: rgba(255, 45, 85, 0.1);
    color: #ff2d55;
}

.ol-card-body {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ol-card-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background: #f3f4f6;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ol-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ol-card-image .image-placeholder {
    color: #d1d5db;
}

.ol-card-image .image-placeholder svg {
    width: 32px;
    height: 32px;
}

.ol-card-info {
    flex: 1;
    min-width: 0;
}

.ol-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
    line-height: 1.4;
}

.ol-card-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 13px;
    color: #6b7280;
}

.ol-card-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ol-card-detail-item svg {
    width: 14px;
    height: 14px;
    color: #9ca3af;
    flex-shrink: 0;
}

.ol-card-times {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.ol-card-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.06) 20%, rgba(0,0,0,0.06) 80%, transparent);
    margin: 16px 0;
}

.ol-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.ol-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    border: none;
    background: none;
    font-family: inherit;
}

.ol-action-btn svg {
    width: 14px;
    height: 14px;
}

.ol-action-btn.btn-default {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.ol-action-btn.btn-info {
    background: rgba(0, 122, 255, 0.1);
    color: #007aff;
}

.ol-action-btn.btn-success {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.ol-action-btn.btn-danger {
    background: rgba(255, 59, 48, 0.08);
    color: #ff3b30;
}

.ol-action-btn:hover {
    opacity: 0.8;
}

/* ========== 空状态 ========== */
.ol-empty {
    text-align: center;
    padding: 48px 20px;
    color: #9ca3af;
}

.ol-empty svg {
    width: 48px;
    height: 48px;
    color: #d1d5db;
    margin-bottom: 12px;
}

.ol-empty-text {
    font-size: 14px;
}

/* ========== 加载更多 ========== */
.ol-loadmore {
    text-align: center;
    padding-top: 16px;
}

.ol-loadmore-btn {
    padding: 10px 32px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.ol-loadmore-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ========== 响应式 ========== */
@media (max-width: 992px) {
    .ol-search-input {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .ol-card-body {
        flex-direction: column;
    }

    .ol-card-image {
        width: 100%;
        height: 120px;
    }

    .ol-search-input {
        max-width: none;
    }

    .ol-search-box {
        flex-wrap: wrap;
    }
}
