/* ============================================
   宜荣财达物流 - 查询详情页面样式
   ============================================ */

/* 查询详情区域 */
.query-detail-section {
    padding: 140px 0 100px;
    background: linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
    min-height: 100vh;
}

/* 浏览量信息 */
.views-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-light) 0%, #eff6ff 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid rgba(30, 58, 138, 0.2);
}

.views-icon {
    font-size: 1.25rem;
}

.views-count {
    font-weight: 700;
    color: var(--primary);
}

.query-time {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* 车辆卡片样式（详情页专用） */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.vehicle-card {
    background: var(--white);
    border: 2px solid var(--gray-100);
    border-radius: var(--radius-xl);
    padding: 1.75rem;
    text-align: left;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.vehicle-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gray-200);
    transition: var(--transition);
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vehicle-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.vehicle-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.vehicle-info h5 {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.vehicle-specs {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.vehicle-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-100);
}

.vehicle-price .label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

.vehicle-price .value {
    font-size: 1.75rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--warning) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vehicle-cost-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
}

.cost-label {
    color: var(--gray-500);
}

.cost-value {
    color: var(--gray-700);
    font-weight: 600;
}

.vehicle-meta {
    display: flex;
    justify-content: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

.vehicle-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.vehicle-discount {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--secondary-light);
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-align: center;
}

.vehicle-discount.markup {
    background: #ffedd5;
    color: #ea580c;
}

/* 车辆颜色多样化 */
.vehicle-blue:hover {
    border-color: var(--vehicle-blue);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(59, 130, 246, 0.2);
}
.vehicle-blue:hover::before {
    background: linear-gradient(90deg, var(--vehicle-blue), #60a5fa);
}

.vehicle-green:hover {
    border-color: var(--vehicle-green);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(16, 185, 129, 0.2);
}
.vehicle-green:hover::before {
    background: linear-gradient(90deg, var(--vehicle-green), #34d399);
}

.vehicle-orange:hover {
    border-color: var(--vehicle-orange);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(249, 115, 22, 0.2);
}
.vehicle-orange:hover::before {
    background: linear-gradient(90deg, var(--vehicle-orange), #fb923c);
}

.vehicle-purple:hover {
    border-color: var(--vehicle-purple);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(139, 92, 246, 0.2);
}
.vehicle-purple:hover::before {
    background: linear-gradient(90deg, var(--vehicle-purple), #a78bfa);
}

.vehicle-red:hover {
    border-color: var(--vehicle-red);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(239, 68, 68, 0.2);
}
.vehicle-red:hover::before {
    background: linear-gradient(90deg, var(--vehicle-red), #f87171);
}

.vehicle-cyan:hover {
    border-color: var(--vehicle-cyan);
    box-shadow: var(--shadow-lg), 0 10px 30px rgba(6, 182, 212, 0.2);
}
.vehicle-cyan:hover::before {
    background: linear-gradient(90deg, var(--vehicle-cyan), #22d3ee);
}

/* 上下篇导航 */
.detail-navigation {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    margin: 2.5rem 0;
    padding: 1.5rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.nav-link-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-link-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link-detail:hover {
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.nav-link-detail:hover::before {
    width: 6px;
}

.nav-link-detail.prev {
    text-align: left;
}

.nav-link-detail.next {
    text-align: right;
}

.nav-link-detail.next::before {
    left: auto;
    right: 0;
}

.nav-link-detail.next:hover {
    transform: translateX(-5px);
}

.nav-link-detail.back {
    justify-content: center;
    align-items: center;
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: var(--white);
}

.nav-link-detail.back::before {
    display: none;
}

.nav-link-detail.back:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 20px rgba(30, 58, 138, 0.3);
}

.nav-link-detail.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
}

.nav-link-detail.back .nav-label {
    color: rgba(255,255,255,0.9);
    font-size: 1rem;
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

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

    .detail-navigation {
        grid-template-columns: 1fr;
    }

    .nav-link-detail.prev,
    .nav-link-detail.next {
        text-align: center;
    }

    .nav-link-detail.prev::before,
    .nav-link-detail.next::before {
        left: 0;
        right: auto;
    }

    .nav-link-detail.next:hover {
        transform: translateX(5px);
    }
}

@media (max-width: 768px) {
    .query-detail-section {
        padding: 120px 0 60px;
    }

    .views-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .vehicle-grid {
        grid-template-columns: 1fr;
    }

    .vehicle-header {
        flex-direction: column;
        text-align: center;
    }

    .detail-navigation {
        padding: 1rem;
    }
}
