/* css/robot-market.css */
.robot-market {
    padding: 80px 0;
    background: #f8f9fa;
}

.market-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title {
    font-size: 36px;
    color: #333;
    margin-bottom: 20px;
}

.section-title .highlight {
    color: #1890ff;
    position: relative;
}

.market-link {
    color: #1890ff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.market-link:hover {
    color: #40a9ff;
    text-decoration: underline;
}

/* 类别分组样式 */
.market-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-group {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.category-group:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}

/* 类别头部样式 */
.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.category-icon {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.category-header h3 {
    font-size: 18px;
    color: #333;
    margin: 0;
}

/* 机器人列表样式 */
.robot-list {
    margin-top: 10px;
}

.robot-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-link {
    display: block;
    color: #666;
    font-size: 14px;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 8px;
}

.item-link:last-child {
    margin-bottom: 0;
}

.item-link:hover {
    color: #1890ff;
}

/* 响应式设计 */
@media screen and (max-width: 1200px) {
    .market-categories {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .market-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .market-categories {
        grid-template-columns: 1fr;
    }
}

/* 添加动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-group {
    animation: slideInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* 为每个类别设置不同的动画延迟 */
.category-group:nth-child(2) {
    animation-delay: 0.2s;
}

.category-group:nth-child(3) {
    animation-delay: 0.4s;
}

/* 添加悬浮标签 */
.robot-item {
    position: relative;
}

.robot-item::after {
    content: '查看详情';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #1890ff;
    opacity: 0;
    transition: all 0.3s;
}

.robot-item:hover::after {
    opacity: 1;
}