/* ===========================================================================
   订单管理模块专属样式 (Orders module specific styles)
   - 与 KPI / Modal 样式保持视觉一致 (#667eea -> #764ba2)
   - 加入卡片悬停、表格行交互、徽章效果等微交互
   =========================================================================== */

/* 订单列表页面 ----------------------------------------------------------- */
.orders-list-page .stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.orders-list-page .stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.18) !important;
}

.orders-list-page .orders-search-input .input-group-text {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.25);
    color: #667eea;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.orders-list-page .orders-search-input .form-control {
    border-color: rgba(102, 126, 234, 0.25);
    border-left: none;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.orders-list-page .orders-search-input .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.orders-table-wrapper {
    border-radius: 12px;
    overflow: hidden;
}

.orders-table thead th {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.06) 100%);
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: 2px solid rgba(102, 126, 234, 0.15);
    padding: 14px 10px;
}

.orders-table tbody tr {
    transition: background 0.25s ease;
}

.orders-table tbody tr:hover {
    background: rgba(102, 126, 234, 0.04) !important;
}

.orders-table tbody td {
    padding: 14px 10px;
    border-color: rgba(102, 126, 234, 0.06);
    font-size: 14px;
}

.order-no-pill {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-radius: 6px;
    font-family: 'Courier New', 'JetBrains Mono', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.orders-progress {
    background: rgba(102, 126, 234, 0.1);
}

.orders-progress .progress-bar {
    transition: width 0.6s ease;
}

.action-btn,
.action-btn-icon {
    border-radius: 8px !important;
    padding: 4px 12px !important;
    font-size: 12px !important;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.action-btn-icon {
    min-width: 32px;
    height: 30px;
    padding: 4px 8px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover,
.action-btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.orders-action-cell {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

.status-badge {
    transition: transform 0.2s ease;
    white-space: nowrap;
}

.orders-table tbody tr:hover .status-badge {
    transform: scale(1.04);
}

/* 订单详情页面 ----------------------------------------------------------- */
.hero-status-pill {
    transition: transform 0.3s ease;
}

.hero-status-pill:hover {
    transform: translateY(-1px);
}

.binding-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.binding-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(102, 126, 234, 0.15) !important;
}

.binding-card .input-group .btn {
    border-radius: 0 8px 8px 0 !important;
    padding: 6px 12px !important;
}

.binding-card .input-group .form-control {
    border-radius: 8px 0 0 8px !important;
    font-size: 13px !important;
}

.binding-full-icon {
    width: 28px;
    height: 28px;
    background: rgba(17, 153, 142, 0.12);
    border-radius: 999px;
    align-items: center;
    justify-content: center;
}

.info-cell {
    padding: 6px 4px;
}

.order-no-display {
    letter-spacing: 1.5px;
    color: #2c3e50;
}

.tracking-summary-item {
    padding: 10px 12px;
    border: 1px solid rgba(17, 153, 142, 0.12);
    border-radius: 8px;
    background: rgba(17, 153, 142, 0.04);
    min-height: 64px;
}

.tracking-local-panel {
    padding: 14px 16px;
    border: 1px solid rgba(17, 153, 142, 0.12);
    border-radius: 8px;
    background: rgba(17, 153, 142, 0.04);
}

.tracking-note {
    color: #475569;
    font-size: 14px;
    word-break: break-word;
}

/* 测试结果列表 ----------------------------------------------------------- */
.result-table thead th {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.08) 0%, rgba(0, 242, 254, 0.06) 100%);
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4px;
    border-bottom: 2px solid rgba(79, 172, 254, 0.18);
    padding: 12px 10px;
}

.result-table tbody tr {
    transition: background 0.2s ease;
}

.result-table tbody tr:hover {
    background: rgba(79, 172, 254, 0.04) !important;
}

.result-table tbody td {
    padding: 12px 10px;
    border-color: rgba(79, 172, 254, 0.06);
}

.result-table .placeholder-row {
    background: rgba(255, 248, 225, 0.4);
}

.result-table .placeholder-row:hover {
    background: rgba(255, 248, 225, 0.6) !important;
}

.type-badge {
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease;
}

.result-table tbody tr:hover .type-badge {
    transform: scale(1.05);
}

.accuracy-link {
    color: #4facfe !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: all 0.2s ease;
}

.accuracy-link:hover {
    color: #00bcd4 !important;
    transform: translateX(2px);
}

/* 表单页面 -------------------------------------------------------------- */
.standard-package-card {
    transition: all 0.25s ease;
}

.standard-package-card:hover {
    background: rgba(102, 126, 234, 0.08) !important;
    border-color: rgba(102, 126, 234, 0.5) !important;
}

.standard-package-card .form-check-input {
    margin-top: 0.2rem;
    border-color: rgba(102, 126, 234, 0.4);
}

.standard-package-card .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

/* 空状态 ---------------------------------------------------------------- */
.empty-state {
    color: #94a3b8;
}

.empty-state h6 {
    color: #475569;
    font-weight: 600;
}

/* 响应式调整 ------------------------------------------------------------ */
@media (max-width: 768px) {
    .orders-list-page .stat-card {
        margin-bottom: 8px;
    }

    .orders-table tbody td,
    .orders-table thead th {
        padding: 10px 8px;
        font-size: 12px;
    }

    .order-no-pill {
        font-size: 11px;
        padding: 3px 8px;
    }

    .hero-status-pill {
        font-size: 12px !important;
    }

    .info-cell {
        padding: 4px 2px;
    }
}
