/* 服务卡片样式 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.service-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.card-image {
    height: 160px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    background: #f0f0f0;
}

.card-content {
    padding: 20px;
}

.card-title {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.card-title a {
    text-decoration: none;
    color: #333;
}

.card-title a:hover {
    color: #007cba;
}

.card-excerpt {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 15px;
}

/* 状态标签样式 */
.status-badge, .service-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
}

.status-active { background: #4CAF50; }
.status-closed { background: #f44336; }
.status-acquired { background: #FF9800; }
.status-transformed { background: #2196F3; }

/* 时间线样式 */
.service-timeline-section {
    margin: 40px 0;
}

.service-timeline {
    position: relative;
    padding: 20px 0;
}

.service-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #007cba;
    transform: translateX(-50%);
}

.timeline-event {
    position: relative;
    margin: 40px 0;
    width: 45%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.timeline-event:nth-child(odd) {
    left: 0;
}

.timeline-event:nth-child(even) {
    left: 55%;
}

.timeline-event::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 12px;
    height: 12px;
    background: #007cba;
    border-radius: 50%;
}

.timeline-event:nth-child(odd)::before {
    right: -36px;
}

.timeline-event:nth-child(even)::before {
    left: -36px;
}

.event-date {
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.event-type {
    display: inline-block;
    padding: 2px 6px;
    background: #f0f0f0;
    border-radius: 3px;
    font-size: 0.8em;
    margin-bottom: 10px;
}

.event-description {
    color: #666;
}

/* 筛选按钮 */
.filter-buttons {
    margin: 20px 0;
}

.filter-btn {
    padding: 8px 16px;
    margin: 0 5px 5px 0;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-event {
        width: 90%;
        left: 5% !important;
    }
    
    .service-timeline::before {
        left: 20px;
    }
    
    .timeline-event::before {
        left: -26px !important;
        right: auto !important;
    }
}