/* ===== 列表页样式 ===== */
.page-header {
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.page-description {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
}

.filter {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.filter-title {
    font-size: 20px;
    color: #1f2937;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-weight: 700;
    position: relative;
}

.filter-title i {
    margin-right: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 22px;
}

.filter-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(226, 232, 240, 0.6) 20%,
    rgba(226, 232, 240, 0.8) 50%,
    rgba(226, 232, 240, 0.6) 80%,
    transparent 100%);
    margin-left: 16px;
}
.filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 24px;
        }

        .filter-buttons:last-child {
            margin-bottom: 0;
        }

        .filter-buttons a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 10px 20px;
            border-radius: 12px;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            border: 2px solid transparent;
            background: linear-gradient(135deg, #ffffff 0%, #f9fafb 

100%);
            color: #4b5563;
            box-shadow: 
                0 2px 4px rgba(0, 0, 0, 0.04),
                0 1px 0 rgba(255, 255, 255, 0.8) inset;
        }

        .filter-buttons a:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 6px 12px rgba(0, 0, 0, 0.08),
                0 4px 6px rgba(0, 0, 0, 0.05);
            border-color: #3b82f6;
            color: #3b82f6;
            background: linear-gradient(135deg, #ffffff 0%, #eff6ff 

100%);
            text-decoration: none;
        }

        .filter-buttons a.active {
            background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 

100%);
            color: white !important;
            border-color: transparent;
            box-shadow: 
                0 4px 12px rgba(59, 130, 246, 0.3),
                0 2px 0 rgba(255, 255, 255, 0.2) inset;
            position: relative;
        }

        .filter-buttons a.active::after {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(135deg, 
                #3b82f6 0%, 
                #8b5cf6 25%, 
                #ec4899 50%, 
                #f59e0b 75%, 
                #10b981 100%);
            background-size: 200% 200%;
            border-radius: 14px;
            z-index: -1;
            opacity: 0.6;
            animation: pulseGlow 2s ease-in-out infinite;
        }

/* 内容网格布局 */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.content-card {
    background: #fff;
            border-radius: 16px;
            padding: 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            text-decoration: none;
            display: block;
            color: inherit;
            border: 1px solid #f8fafc;
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
}

.content-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-status {
            position: absolute;
            top: 16px;
            right: 16px;
            z-index: 2;
        }
.status-dot {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background-color: #10b981;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
            animation: pulse 2s infinite;
        }
.status-dot.urgent {
            background-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
            animation: pulse-urgent 1s infinite;
        }
.card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 16px;
        }
        .card-type-badge {
            display: inline-flex;
            align-items: center;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            line-height: 1;
        }
        /* 车找人 - 蓝色 */
        .card-type-badge.type-driver {
            background: linear-gradient(135deg, #e0f2fe, #dbeafe);
            color: #1d4ed8;
            border: 1px solid #bfdbfe;
        }

        /* 人找车 - 绿色 */
        .card-type-badge.type-passenger {
            background: linear-gradient(135deg, #dcfce7, #d1fae5);
            color: #047857;
            border: 1px solid #a7f3d0;
        }
        
        .card-date {
            font-size: 13px;
            color: #94a3b8;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .card-date i {
            font-size: 12px;
        }
        
          .card-title {
            font-size: 15px;
            font-weight: 700;
            color: #1e293b;
            line-height: 1.4;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid #f1f5f9;
            position: relative;
        }

        .card-title::before {
            content: '';
            position: absolute;
            left: 0;
            bottom: -1px;
            width: 60px;
            height: 2px;
            background: linear-gradient(90deg, #6366f1, #8b5cf6);
            border-radius: 2px;
        }
        .card-details {
            flex-grow: 1;
            margin-bottom: 20px;
        }
                .detail-row {
            display: flex;
            align-items: flex-start;
            margin-bottom: 14px;
            padding: 8px 0;
            transition: all 0.2s ease;
            border-radius: 8px;
        }

        .detail-row:hover {
            transform: translateX(4px);
        }
        .detail-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
            font-size: 14px;
        }
        .detail-content {
            flex: 1;
        }

        .detail-label {
            font-size: 12px;
            color: #64748b;
            margin-bottom: 4px;
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        .detail-value {
            font-size: 15px;
            color: #1e293b;
            font-weight: 600;
            line-height: 1.4;
        }
                .departure-time .detail-icon {
            background: linear-gradient(135deg, #fef3c7, #fef3c7);
            color: #d97706;
        }

        .departure-time .detail-value {
            color: #b45309;
            font-weight: 700;
        }

        .seats-info .detail-icon {
            background: linear-gradient(135deg, #dbeafe, #dbeafe);
            color: #1d4ed8;
        }

        .seats-info .detail-value {
            color: #1e40af;
        }

        .route-info .detail-icon {
            background: linear-gradient(135deg, #ede9fe, #ede9fe);
            color: #7c3aed;
        }
        
                .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 18px;
            border-top: 1px solid #f1f5f9;
            margin-top: auto;
        }
        
     .card-footer {
    display: flex;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
    min-height: 40px;
}

.location-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.location-info i {
    color: #94a3b8;
    font-size: 14px;
    width: 16px;
}

        
/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    list-style: none;
    gap: 8px;
}

.pagination li {
    margin: 0;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    padding: 0 12px;
}

.pagination a:hover {
    background: #f1f5f9;
    color: #4f46e5;
    text-decoration: none;
}

.pagination li.active a {
    background: linear-gradient(135deg, #6366f6, #8b5cf6);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pagination li:first-child a {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    pointer-events: none;
}

.pagination li:first-child a:hover {
    background: #f8fafc;
    color: #64748b;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 2px dashed #e2e8f0;
}

.empty-icon {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
}

.empty-title {
    font-size: 24px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.empty-description {
    font-size: 16px;
    color: #94a3b8;
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.6;
}

/* 热门排名样式 */
.data-item .hot-rank {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 8px;
    flex-shrink: 0;
    color: white;
}

.data-item-link:nth-child(1) .hot-rank {
    background-color: #ff5252;
}

.data-item-link:nth-child(2) .hot-rank {
    background-color: #ff9800;
}

.data-item-link:nth-child(3) .hot-rank {
    background-color: #03a9f4;
}

.data-item-link:nth-child(4) .hot-rank {
    background-color: #4caf50;
}

.data-item-link:nth-child(n+5) .hot-rank {
    background-color: #9e9e9e;
}

/* ===== 卡片响应式设计 ===== */
/* 大屏幕：3列 */
@media (min-width: 1024px) {
    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 中等屏幕：2列 */
@media (max-width: 1023px) and (min-width: 768px) {
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 平板设备调整 */
@media (max-width: 768px) {
    .content-card {
        padding: 20px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .card-date {
        align-self: flex-start;
    }
    
    .card-title {
        font-size: 16px;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }
    
    .detail-row {
        margin-bottom: 12px;
        padding: 6px 0;
    }
    
    .detail-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .card-footer {
        padding-top: 12px;
        min-height: 36px;
    }
    
    .location-info {
        font-size: 13px;
    }
}

/* 小屏幕：1列 */
@media (max-width: 767px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* 手机设备调整 */
@media (max-width: 480px) {
    .content-card {
        padding: 16px;
    }
    
    .card-type-badge {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .card-date {
        font-size: 12px;
    }
    
    .detail-row {
        align-items: center;
    }
    
    .detail-icon {
        width: 28px;
        height: 28px;
        font-size: 12px;
        margin-right: 10px;
    }
    
    .detail-label {
        font-size: 11px;
    }
    
    .detail-value {
        font-size: 13px;
    }
    
    .card-footer {
        min-height: 32px;
    }
    
    .location-info {
        font-size: 12px;
        gap: 6px;
    }
    
    .location-info i {
        font-size: 12px;
    }
}