/* 服务项目展示样式 - 紧凑版 */
.services-section {
    padding: 0;
    margin: 0;
}

.services-container {
    width: 100%;
    position: relative;
}

/* 紧凑网格 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 8px;
    padding: 12px 0;
}

/* 小卡片 */
.service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 85px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-2px);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

/* 小图标 */
.service-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
    flex-shrink: 0;
}

.service-icon i {
    font-size: 12px;
    color: white;
}

/* 服务名称 */
.service-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 6px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 服务价格 */
.service-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 6px;
    flex-shrink: 0;
}

/* 服务状态标签 */
.service-status {
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin: 0 auto;
    width: fit-content;
}

.service-status.available {
    background: rgba(72, 187, 120, 0.1);
    color: #48bb78;
}

.service-status.unavailable {
    background: rgba(245, 101, 101, 0.1);
    color: #f56565;
}

/* 加载状态 */
.service-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #718096;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    animation: spin 1s linear infinite;
}

.loading-spinner i {
    color: white;
    font-size: 1.2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 空状态 */
.empty-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.empty-content i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
    color: #cbd5e0;
}

.empty-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #4a5568;
}

/* 错误状态 */
.error-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #e53e3e;
}

.error-content i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: #feb2b2;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    background: #5a67d8;
}

/* 隐藏查看更多按钮 */
.view-more-services {
    display: none;
}

/* 手机端 */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 6px;
    }

    .service-card {
        padding: 8px;
        min-height: 75px;
    }

    .service-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 4px;
    }

    .service-icon i {
        font-size: 10px;
    }

    .service-name {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .service-price {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .service-status {
        font-size: 0.6rem;
        padding: 1px 4px;
    }
}