/* query_list.css - 查询列表页面样式 */

/* 查询列表区域 */
.query-list-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.query-list-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6, #ec4899);
}

/* 查询列表表格容器 */
.query-list-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 30px;
}

/* 列表头部 */
.list-header {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    padding: 16px 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.list-header .col-id {
    flex: 0.5;
    text-align: center;
}

.list-header .col-route {
    flex: 2;
    text-align: center;
}

.list-header .col-price-ton {
    flex: 1;
    text-align: center;
}

.list-header .col-price-cube {
    flex: 1;
    text-align: center;
}

.list-header .col-distance {
    flex: 0.8;
    text-align: center;
}

.list-header .col-date {
    flex: 1;
    text-align: center;
}

.list-header .col-action {
    flex: 0.8;
    text-align: center;
}

/* 列表项 */
.query-list-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.query-list-item:last-child {
    border-bottom: none;
}

.query-list-item:hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
    transform: translateX(8px);
}

.query-list-item:nth-child(even) {
    background: #fafafa;
}

.query-list-item:nth-child(even):hover {
    background: linear-gradient(135deg, #f0f9ff 0%, #f5f3ff 100%);
}

/* ID列 */
.col-id {
    flex: 0.5;
    text-align: center;
}

.query-id {
    display: inline-block;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    min-width: 40px;
}

/* 路线列 */
.col-route {
    flex: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.origin-location {
    text-align: right;
}

.origin-location .city {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.origin-location .province {
    font-size: 0.7rem;
    color: #64748b;
}

.arrow-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    border-radius: 50%;
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.destination-location {
    text-align: left;
}

.destination-location .city {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

.destination-location .province {
    font-size: 0.7rem;
    color: #64748b;
}

/* 价格列 - 吨价 */
.col-price-ton {
    flex: 1;
    text-align: center;
}

.price-ton {
    font-size: 1rem;
    font-weight: 700;
    color: #0ea5e9;
}

.price-ton .unit {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

/* 价格列 - 立方价 */
.col-price-cube {
    flex: 1;
    text-align: center;
}

.price-cube {
    font-size: 1rem;
    font-weight: 700;
    color: #8b5cf6;
}

.price-cube .unit {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

/* 距离列 */
.col-distance {
    flex: 0.8;
    text-align: center;
}

.distance-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: #10b981;
}

.distance-val .unit {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 500;
}

/* 日期列 */
.col-date {
    flex: 1;
    text-align: center;
}

.query-date {
    font-size: 0.8rem;
    color: #475569;
    font-weight: 500;
}

/* 操作列 */
.col-action {
    flex: 0.8;
    text-align: center;
}

.btn-view-detail {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-view-detail:hover {
    background: linear-gradient(135deg, #0284c7, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.3);
}

.btn-view-detail svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.btn-view-detail:hover svg {
    transform: translateX(4px);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h4 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 12px;
}

.empty-state p {
    color: #64748b;
    margin-bottom: 24px;
}

/* 分页样式 */
.pagination {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.pagination-links {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-link:hover {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.3);
}

.page-link.active {
    background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.page-link.disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #cbd5e1;
}

.page-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid #e2e8f0;
}

/* 响应式优化 */
@media (max-width: 1024px) {
    .list-header {
        display: none;
    }

    .query-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px;
    }

    .col-id, .col-route, .col-price-ton, .col-price-cube, .col-distance, .col-date, .col-action {
        flex: none;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .col-id::before,
    .col-route::before,
    .col-price-ton::before,
    .col-price-cube::before,
    .col-distance::before,
    .col-date::before,
    .col-action::before {
        font-size: 0.75rem;
        color: #64748b;
        font-weight: 600;
        min-width: 80px;
    }

    .col-id::before { content: 'ID:'; }
    .col-route::before { content: '路线:'; }
    .col-price-ton::before { content: '吨价:'; }
    .col-price-cube::before { content: '立方价:'; }
    .col-distance::before { content: '距离:'; }
    .col-date::before { content: '日期:'; }
    .col-action::before { content: ''; min-width: 0; }

    .origin-location, .destination-location {
        text-align: left;
    }

    .btn-view-detail {
        width: 100%;
        justify-content: center;
    }

    .query-id {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .query-list-container {
        border-radius: 12px;
    }

    .query-list-item {
        padding: 16px;
    }

    .origin-location .city, .destination-location .city {
        font-size: 0.95rem;
    }

    .price-ton, .price-cube, .distance-val {
        font-size: 0.95rem;
    }

    .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8rem;
    }

    .page-info {
        min-width: 36px;
        height: 36px;
        padding: 0 8px;
        font-size: 0.8rem;
    }
}