/* TKTOC服务板块独立样式文件 */
/* 可复用于其他模板页面 */
/* 使用原主题的card样式和CSS变量 */

.tktoc-services-grid {
    padding: 40px 0;
    background: transparent;
    margin: 0 0 30px 0;
}

.tktoc-services-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    max-width: var(--main-max-width, 1260px);
    margin: 0 auto;
    padding: 0 20px;
}

.tktoc-service-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border-radius: var(--theme-border-radius, 12px);
    background-color: var(--main-bg-color, #ffffff);
    border: 0;
    box-shadow: 0 5px 20px var(--main-shadow, rgba(0, 0, 0, 0.1));
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--main-color, #484b4f);
    min-height: 120px;
    justify-content: center;
}

.tktoc-service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--main-shadow, rgba(0, 0, 0, 0.15));
    color: var(--theme-color, #f1404b);
}

.tktoc-service-item.active {
    color: var(--theme-color, #f1404b);
    box-shadow: 0 8px 25px var(--focus-shadow-color, rgba(220, 65, 75, 0.3));
}

.tktoc-service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tktoc-service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tktoc-service-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
    color: var(--main-color, #484b4f);
    transition: color 0.3s ease;
}

.tktoc-service-item:hover .tktoc-service-text {
    color: var(--theme-color, #f1404b);
}

.tktoc-service-item.active .tktoc-service-text {
    color: var(--theme-color, #f1404b);
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .tktoc-services-row {
        gap: 8px;
        padding: 0 15px;
    }
    
    .tktoc-service-item {
        padding: 15px 8px;
        min-height: 100px;
    }
    
    .tktoc-service-icon {
        width: 40px;
        height: 40px;
    }
    
    .tktoc-service-text {
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .tktoc-services-row {
        gap: 6px;
        padding: 0 10px;
    }
    
    .tktoc-service-item {
        padding: 12px 6px;
        min-height: 90px;
    }
    
    .tktoc-service-icon {
        width: 36px;
        height: 36px;
    }
    
    .tktoc-service-text {
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .tktoc-services-grid {
        padding: 30px 0;
    }
    
    .tktoc-services-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 15px;
    }
    
    .tktoc-service-item {
        flex: 0 0 calc(25% - 8px);
        min-height: 80px;
        padding: 12px 6px;
        border-radius: 8px;
    }
    
    .tktoc-service-icon {
        width: 28px;
        height: 28px;
        margin-bottom: 8px;
    }
    
    .tktoc-service-text {
        font-size: 12px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .tktoc-services-grid {
        padding: 25px 0;
    }
    
    .tktoc-services-row {
        gap: 8px;
        padding: 0 10px;
    }
    
    .tktoc-service-item {
        flex: 0 0 calc(25% - 6px);
        min-height: 70px;
        padding: 10px 4px;
        margin-bottom: 0;
    }
    
    .tktoc-service-icon {
        width: 24px;
        height: 24px;
        margin-bottom: 6px;
    }
    
    .tktoc-service-text {
        font-size: 11px;
        line-height: 1.4;
    }
}

@media (max-width: 360px) {
    .tktoc-services-grid {
        padding: 20px 0;
    }
    
    .tktoc-services-row {
        gap: 6px;
        padding: 0 8px;
    }
    
    .tktoc-service-item {
        flex: 0 0 calc(25% - 5px);
        min-height: 65px;
        padding: 8px 3px;
        border-radius: 6px;
    }
    
    .tktoc-service-icon {
        width: 20px;
        height: 20px;
        margin-bottom: 5px;
    }
    
    .tktoc-service-text {
        font-size: 10px;
        line-height: 1.4;
    }
}