/* 首页热门查询样式 */

/* 热门查询区域 */
.hot-queries-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.hot-queries-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-rank {
    flex: 0.6;
    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-views {
    flex: 0.8;
    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%);
}

/* 排名列 */
.col-rank {
    flex: 0.6;
    text-align: center;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.9rem;
    background: #e2e8f0;
    color: #64748b;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    color: white;
    box-shadow: 0 4px 12px rgba(156, 163, 175, 0.4);
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* 路线列 */
.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;
}

.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;
}

.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;
}

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

.price-ton, .price-cube {
    font-size: 1rem;
    font-weight: 700;
}

.price-ton {
    color: #0ea5e9;
}

.price-cube {
    color: #8b5cf6;
}

.price-ton .unit, .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-views {
    flex: 0.8;
    text-align: center;
}

.views-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f59e0b;
    background: #fffbeb;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid #fcd34d;
}

.views-count::before {
    content: '🔥';
    font-size: 0.8rem;
}

/* 操作列 */
.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);
    margin-top: 30px;
}

.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;
}

/* ============================================
   车辆价格卡片样式 - 2026-04-13 修正版
   彩色图标 + 分离式车辆名称显示
   ============================================ */

/* 车辆卡片网格布局 */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .vehicle-grid { grid-template-columns: 1fr; }
}

/* 车辆卡片主体样式 - 白色背景 */
.vehicle-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.vehicle-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* 车辆头部：图标 + 名称 */
.vehicle-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.vehicle-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.vehicle-icon svg {
    width: 32px;
    height: 32px;
}

/* 不同车型的图标颜色 - 彩色版本 */
.vehicle-card[data-type="4.2米"] .vehicle-icon { background: #eff6ff; }
.vehicle-card[data-type="4.2米"] .vehicle-icon svg { stroke: #3b82f6; }

.vehicle-card[data-type="6.8米"] .vehicle-icon { background: #f0fdf4; }
.vehicle-card[data-type="6.8米"] .vehicle-icon svg { stroke: #22c55e; }

.vehicle-card[data-type="9.6米"] .vehicle-icon { background: #fff7ed; }
.vehicle-card[data-type="9.6米"] .vehicle-icon svg { stroke: #f97316; }

.vehicle-card[data-type="13米"] .vehicle-icon { background: #faf5ff; }
.vehicle-card[data-type="13米"] .vehicle-icon svg { stroke: #a855f7; }

.vehicle-card[data-type="15米"] .vehicle-icon { background: #fef2f2; }
.vehicle-card[data-type="15米"] .vehicle-icon svg { stroke: #ef4444; }

.vehicle-card[data-type="17.5米"] .vehicle-icon { background: #ecfeff; }
.vehicle-card[data-type="17.5米"] .vehicle-icon svg { stroke: #06b6d4; }

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

/* 【修正】车辆名称样式 - 分离长度和类型 */
.vehicle-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.vehicle-name .vehicle-type {
    font-size: 0.95rem;
    font-weight: 600;
    color: #4a5568;
}

.vehicle-spec {
    font-size: 0.85rem;
    color: #718096;
    font-weight: 400;
}

.vehicle-spec .load,
.vehicle-spec .volume {
    color: #4a5568;
    font-weight: 600;
}

/* 价格区域 - 橙色大字 */
.vehicle-price-section {
    margin: 16px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf2f7;
}

.price-label {
    font-size: 0.9rem;
    color: #ed8936;
    font-weight: 600;
    margin-right: 8px;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ed8936;
    line-height: 1;
}

.price-value span {
    font-size: 2rem;
}

/* 费用明细区域 */
.vehicle-details {
    margin-bottom: 16px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 0.85rem;
}

.detail-row:not(:last-child) {
    border-bottom: 1px dashed #e2e8f0;
}

.detail-label {
    color: #a0aec0;
    font-weight: 400;
}

.detail-label .toll-rate,
.detail-label .fuel-rate {
    color: #718096;
    font-weight: 500;
}

.detail-value {
    color: #4a5568;
    font-weight: 600;
}

/* 预计时间 */
.vehicle-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #edf2f7;
    font-size: 0.9rem;
    color: #718096;
}

.time-icon {
    width: 16px;
    height: 16px;
    stroke: #a0aec0;
}

.vehicle-time span {
    color: #4a5568;
    font-weight: 500;
}

/* 车辆优惠标签样式 */
.vehicle-discount-info {
    margin-top: 8px;
    font-size: 0.85rem;
}

.vehicle-discount-info .discount-tag {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-discount-info .surcharge-tag {
    display: inline-block;
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.vehicle-discount-info small {
    color: #999;
    text-decoration: line-through;
    margin-left: 5px;
    font-size: 0.75rem;
}

/* 响应式调整 */
@media (max-width: 480px) {
    .vehicle-card { padding: 16px; }
    .vehicle-name { font-size: 1rem; }
    .price-value { font-size: 1.5rem; }
    .price-value span { font-size: 1.8rem; }
}

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

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

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

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

    .col-rank::before { content: '排名:'; }
    .col-route::before { content: '路线:'; }
    .col-price-ton::before { content: '吨价:'; }
    .col-price-cube::before { content: '立方价:'; }
    .col-distance::before { content: '距离:'; }
    .col-views::before { content: '热度:'; }
    .col-action::before { content: ''; min-width: 0; }

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

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

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

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